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