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
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.