🪐 Gravity 60 FPS — 2D N-Body Disk, Orbit Speeds and Energy Conservation
2D top-down companion of the 60 FPS particle gravity sim: a leapfrog N-body integrator with a central mass and optional particle-particle gravity, speed versus radius against the circular-orbit curve, energy and angular-momentum drift graphs and a Kepler-period check.
⚙ Under the hood
2D top-down companion of the 60 FPS particle gravity sim: a leapfrog N-body integrator with a central mass and optional particle-particle gravity, speed versus radius against the circular-orbit curve, energy and angular-momentum drift graphs and a Kepler-period check.
GravityN-Body SimulationOrbital MechanicsLeapfrog Integrator
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install