Interactive N‑Body Gravity Simulation (D3)

next
New Body
Simulation
Bodies
IdmrSel

Click a body to select. Drag within space to add a body with initial velocity (drag vector). Adjust G or dt for stability. Leapfrog-like integrator (semi-implicit Euler). Limit bodies (<150) for performance.