[Launch]
Click and drag to rotate box.
A simple Euler integrator, with checks for collision detection. The rotating effect is achieved rotating the gravity vector in the simulation, and then rotating the world coordinates in the display.
To run use "java -jar balls01.jar", or click on the Launch link.
Source code: balls01.jar
[Launch]
Variation of the same simulation, with many many balls.
Source code: balls02.jar
A simplified version of the previous program. Uses python to write a PostScript file. The size of the ball varies proportional to speed, but that is just to make the graphics look a little less boring.