All experiments
06PhysicsSimulation
Gravity Orbits
An N-body gravity sandbox. Drag to launch a new body, bend an orbit and watch the system negotiate with itself.
Throw a world into orbit.
Loading experiment…
What you are looking at
Every body pulls on every other with a force proportional to the product of their masses and inversely proportional to the square of the distance. That is all Newton wrote. With two bodies the result is a clean ellipse; with three it can be stable for a while and then chaotic forever. This sandbox integrates the equations step by step, so the orbits you see are not drawn from formulas — they are the accumulated result of thousands of tiny pushes.
How to play
- 01Pick a preset. Solar is calm, binary is dramatic, chaos is exactly what it says.
- 02Drag anywhere to aim and release to launch a new body. Velocity is proportional to the length of the drag.
- 03Raise the time scale to fast-forward, and increase trail length to see the shape of each orbit.