Gravity Simulator

This gravity simulation is a sandbox on a grand scale. Put planets, stars, and asteroids in place, give them an initial push, and see where they go. Observe the conic sections that emerge from the simple rules of gravitational attraction.

But gravity has more secrets in mind than even Newton knew. What can you discover?

If want even more speed and features, download the full version of the simulator.

Full Version Features

The full simulator can do more than the online version. A quick list...

  • Much more powerful, can handle more planets
  • More planet images to pick from, or import your own
  • Test out arbitrary force laws
  • Set the potential, add in a tangential force, modify quality settings
  • General Relativity (black holes, two-body orbits, etc)
  • Customizable colors and lines
  • Speed up and slow down time
  • Track planets, seeing the world from their frame
  • Displays energy (kinetic/potential) of each object
  • And more. Oh, is there more.

The Science

Gravity Simulator lets you control one of the most basic forces in the universe. Launch stars and planets, and watch as gravitational patterns unfold. Peaceful conic sections, dancing spirals, wonderful spirographs, and plenty of utter chaos will appear before your eyes.

But your powers don't stop there - you can also change the underlying physics of the simulation. Maybe, instead of a 1/r^2 force law for gravity, you'd like to see what happens if there were a 1/r^2.1 force law. Or any strange force law you can come up with. What weird and fascinating universes can you create by playing with the laws of physics?

Blog Posts:

For Teachers

Are you a teacher looking for resources? Great! Unfortunately, I haven't created any teacher tools for this game yet, but if you do end up using the game as part of a classroom activity, I'd love to hear about it!

Version History

August 29, 2016: Version 0.32w released - lots more features

April 18, 2016: Now built with WebGL! (No plugins needed to play)

May 19, 2014: Dust added, more orbit line options added

April 22, 2014: Updated with new menus and options

March 2014: Released!


The simulator is a work-in-progress. If you find any bugs or desperately want and features, join in the discussion in the forums, get in touch with me, and help make the simulator even better.


Grab some screenshots, or learn more about the story of the game by going to our presskit(). Or you can always email me, andy, at this website's domain.