This is based on Bouncy by Skewb. Skewb did all the hard work. I just changed a couple of things to make the track smoother, and for fun to have the track change color each time you re-drop the ball. Simple bouncing and rolling ball physics using an Euler integrator. Adjust the gravity force and "friction" via the sliders. Press the spacebar to re-drop the ball without resetting the sliders. Press the 'T' key to leave a trace as the ball bounces, press the 'T' key again to turn off the trace.