A simplified gravity simulator for Android, built with libgdx.
You can build it using gradle or Android Studio.
-
Single tap:
If panning is enabled, follow the tapped particle.
Otherwise, create a new particle.
-
Pinch: Zoom the view.
-
Panning / Dragging: If panning is enabled, it will pan the view.
Otherwise, it will create a particle with momentum.
- Small, Medium, Large buttons: Choose a particle size.
- Pan / Follow button: Toggle between panning/following or sling-shotting particles.
- Pause: Toggle pause.
- Particle trails: Show / don't show.
- Collision mode: Bounce / merge particles.
- Reset zoom: Resets the zoom to default.
- Reset particles: Removes all the particles from the field.