Java Mechanics demos

Measuring acceleration due to gravity

1d collision (equal masses)

1d collision (unequal masses)

2d_collision

2d_collision with tracing enabled

Monkey and Game Warden

Monkey and Game Warden (With tracing enabled)

Monkey and Game Warden with no gravity!

The relation between circular and simple harmonic motion

Spring attached to a big ball and a gas

Polymer chain

Motion due to gravitation of two planets with equal masses

Elliptical motion of a planet

How to Use

Here's a picture of a simple JavaMechanics demo. You have two balls connected together by a spring. To run it, you'd just click on start. (the picture here won't do anything but this will).

At the moment it's quite close to equilibrium, so let's try to move a ball to make it more interesting. Just click sel (for "select").

Then click ton the bigger of the two red balls. Notice it turns red when selected. Now click the move button to get it into "move mode".

Now click on the red ball (Don't try to drag it!). Then click again at a point where you want to move it to. It should now have moved:

Now when when you click the green start button, the masses will start to oscillate.

Other things work similarly. "del" deletes selected objects. "crcl" creates a another circular ball. "spr" creates a spring between the two points that you click on.

"prop" is a very useful feature. Try clicking on it. It'll open up a box letting you change and see all the properties of the ball, it's mass, position, and velocity.