I was bored, so I made this. drag the balls, change the masses, etc. WARNING: This is prone to breaking. If it does, drag the balls back in (if you can) and press the flag again. The orange line represents velocity, while the blue is the gravity.
Code by me, Newton for the math (i guess).