Gravity Freeplay

Click, drag, release

../physics/images/gravity.js

Several colorful planets orbiting a yellow sun on a dark background

What's This?

It is a simulation of how suns, planets, moons, and so on behave under the influence of gravity. Here are some example masses:

  Mass
Sun 2.0 × 1030 kg
Mercury 3.3 × 1023 kg
Venus 4.9 × 1024 kg
Earth 6.0 × 1024 kg
Moon 7.3 × 1022 kg
Mars 6.4 × 1023 kg

Try These Challenges!

  • The Orbit: Can you launch a small planet so it orbits a large sun in a stable circle?
  • The Slingshot: Launch a light planet close to a heavy sun and watch it whip around and speed off!
  • Double Trouble: Place two large suns near each other and see what happens to a tiny planet placed between them