What keeps planets in their orbits? Gravity. Every planet falls toward the Sun but also moves sideways — so it never arrives, tracing an ellipse instead. The N-body simulator computes gravitational forces between all bodies at once using Velocity-Verlet integration (symplectic, minimal energy drift). Two bodies: exact Kepler orbit. Three or more: deterministic chaos. The escape velocity is exactly √2 times circular velocity.
🚀 Simulate in the browser