Home▸Physics & Mechanics▸Two-Body Gravity: Kepler Orbits, Conservation Laws and Integrator Error (2D)

🪐 Two-Body Gravity: Kepler Orbits, Conservation Laws and Integrator Error (2D)

2D companion of the 3D gravity simulation: Kepler orbit with equal-area sectors, vis-viva speed, energy and angular momentum conservation and a comparison of Euler, leapfrog and RK4 integrators.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
Two-Body Gravity: Kepler Orbits, Conservation Laws and Integrator Error (2D) ↗ Open standalone
⚙ Under the hood

2D companion of the 3D gravity simulation: Kepler orbit with equal-area sectors, vis-viva speed, energy and angular momentum conservation and a comparison of Euler, leapfrog and RK4 integrators.

gravitykepler-orbitsorbital-mechanicsconservation-lawsnumerical-integration

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)