Interactive N‑Body Gravity Simulation (D3)
nextClick 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.