🪐 N-Body Gravity 2D: Symplectic Integrators, Figure-Eight Orbit and Star Cluster Lab
Interactive 2D N-body gravity lab: direct-summation Newtonian gravity with leapfrog, Yoshida, RK4 and Euler integrators, presets from the solar system to the figure-eight orbit, live energy and angular-momentum conservation graphs and three numerical checks.
⚙ Under the hood
Direct-summation N-body gravity with leapfrog, Yoshida, Runge-Kutta and Euler integrators: solar system, figure-eight three-body orbit, binary with planet, Plummer cluster, live energy drift graphs and numerical checks.
N-Body GravityNewtonian MechanicsSymplectic IntegratorsOrbital DynamicsCanvas 2D
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install