Home▸Physics & Mechanics▸Gravity 60 FPS — 2D N-Body Disk, Orbit Speeds and Energy Conservation

🪐 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.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
Gravity 60 FPS — 2D N-Body Disk, Orbit Speeds and Energy Conservation ↗ Open standalone
⚙ 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

What did you find?

Add reproduction steps (optional)