Be a Supporter!

Gravity Simulator

rated 3.87 / 5 stars
Share Links:
Simulation - Other

Credits & Info

Sep 29, 2016 | 3:31 PM EDT

If you liked this, check these out!

Author Comments

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.

Why stop there? Go ahead and simulate what we might observe if gravity deviates from a 1/r^2 law. Change the law just a little, and try to recreate the strange and famous behavior of Mercury.

Throughout it all there will be beautiful and captivating pictures. So go make some worlds, and make some art.

For even more features, take a look at the downloadable version here:



Rated 5 / 5 stars

An absolutely fun, peaceful simulator. It's a lot like a virtual zen garden, which makes it that much better. It's a great time waster, but I love that you can code your own physics if you want to get serious. Overall, great job.

People find this review helpful!


Rated 4 / 5 stars

>start out creating stable solar system
>try to create stable 2 star solar system
>end up drawing dicks with stars
>4 stars

TestTubeGames responds:

Yikes, all this time and I didn't even realize you can make solar systems in this?!


Rated 5 / 5 stars

Very good game! The soundtrack is very well done, with a relaxing and simple artstyle

TestTubeGames responds:

Thank you - glad you enjoyed it!


Rated 4 / 5 stars

It's pretty fun! Messing around with mass and density is really interesting.
But I have a SERIOUS problem. Using insanely large numbers for the mass and density seemed to have caused a glitch on my mac. Now, on occasion, certain words on different websites are replaced with these weird symbols. It sometimes even happens when I launch Steam. It goes back to normal after I refresh the page. Any way to fix this? I'm on Chrome, if that matters.

TestTubeGames responds:

I... I'm really confused. (Not entirely sure whether you're pulling my leg?) I can think of no reason why this game should affect anything else on your computer. I'm nowhere near a good enough hacker for that kind of thing.


Rated 4 / 5 stars

Great game, but while on Chrome, when I would press "Load From Code", I would get the basic load screen, but when I clicked on where the sample code was to paste in the copied code, the whole game just became a black screen. Apart from this problem though, it's a very fun and entertaining little sandbox.

TestTubeGames responds:

Oh, wow, thanks for pointing that out! Turns out it was a weird css bug - I'll get the fixed version uploaded today. (EDIT: Fixed)