Elastic ball

This is a simulation of a bouncing ball in a box. The surface of the ball is a network of masses and (slightly damped) springs, and the interior is filled with gas at a specified pressure. The ball falls under gravity and collides with the walls.

The controls available to the user are the start/stop and reset buttons, and sliders used to set the gravitational strength, pressure and number of timesteps between display updates. Dragging with the mouse rotates the system.

A Java3D version of this demonstration is also available.

(c)   D. Rapaport