← Explore all worldsGravity Playground
Build a little universe. Launch bodies, change gravity, and watch worlds orbit, merge or fly apart.
Enable JavaScript in a browser with WebGL 2 to run this interactive simulation.
Gravity is a pull between things with mass. Here, every world pulls on every other world.
- A moving world can keep falling around another one. This is an orbit. Its path depends on how fast it moves and how strongly gravity pulls.
- More mass means a stronger pull. The big worlds move too: nothing is pinned in place.
- When worlds touch here, they join into one. Their masses add together, and their motions combine. Real collisions can be much more complicated.
- Trails show where worlds have been. Everything moves on one flat plane, with made-up units so you can experiment.
Try this: Choose Launch bodies and drag across the scene. Then set Gravity to zero and watch the paths straighten. Restart to try again.