To use interactive features, click on the applet first:
- up arrow adds a particle
- down arrow deletes one
- 'i' re-initializes
- 'l' takes you from "circle mode" to "line mode" (hard to see in simulation mode)
- 'c' takes you from "line mode" to "circle mode"
- 'v' toggles between "visualization mode" and "simulation mode" (the default)
- '/' divides the gravitational constant in half
- '*' multiplies it by 2
- '-' subtracts a little something from it, and '+' adds
- If you're quick, you can grab a particle with the mouse!
- To stop (or start back up) all motion, try ctrl-left-click.
Source code: Gravity Body NVector
Built with Processing