Home▸Space & Astronomy▸Orbital Mechanics Lab: Launch, Thrust & Trajectories (2D)

Orbital Mechanics Lab: Launch, Thrust & Trajectories (2D)

Launch a spacecraft into a Newtonian gravity well, fire prograde, retrograde and radial thrust burns, and read live apoapsis, periapsis, eccentricity and orbital period off an RK4-integrated two-body trajectory.

Space & Astronomy2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-space-exploration-model-v9 ↗ Open standalone

This 2D companion drives real Newtonian two-body physics instead of the 3D version's decorative rotating-cylinder scene: a central planet with adjustable gravitational parameter, a spacecraft launched at a chosen altitude and velocity, and an RK4 integrator that solves the same inverse-square gravity law that governs real orbits. Prograde and retrograde burns raise or lower the far side of the orbit, radial burns tilt it, and a live telemetry panel derives apoapsis, periapsis, eccentricity and orbital period directly from the spacecraft's instantaneous energy and angular momentum — the same vis-viva and orbital-elements formulas used in real mission planning — so you can watch a circular orbit become an ellipse, a hyperbolic escape trajectory, or a re-entry, purely from the numbers you set.

⚙ Under the hood

2D orbital-mechanics sandbox: RK4-integrated Newtonian two-body gravity, prograde/retrograde/radial thrust impulses that consume fuel, and live apoapsis/periapsis/eccentricity/period readouts computed from orbital energy and angular momentum.

orbital mechanicsnewtonian gravitytwo-body problemeccentricityapoapsis periapsisrunge-kutta

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

What physics drives this simulation?

Newtonian inverse-square gravity between the spacecraft and a fixed central planet, integrated with fourth-order Runge-Kutta (RK4) for numerical stability, even at high time-warp.

How is eccentricity calculated?

From the spacecraft's specific orbital energy and specific angular momentum at each instant — the same closed-form relation used to classify real orbits as circular, elliptical, parabolic or hyperbolic.

What happens if I burn too much retrograde thrust?

The periapsis drops below the planet's surface radius and the spacecraft crashes; burning too much prograde instead can push the orbit's energy above zero and send it on an escape trajectory.

What did you find?

Add reproduction steps (optional)