← lab index

N-Body Gravity Simulator

N bodies attract each other under F = Gm₁m₂/r². Click to place new masses. Watch stable orbits, chaotic scattering, and gravitational slingshots emerge.

Click to add a body. Drag to set initial velocity.