Home▸Space & Astronomy▸Orbital Slingshot Maneuver (2D)

Orbital Slingshot Maneuver (2D)

2D gravity-assist lab: a probe crosses a moving planet's inverse-square field, integrated with semi-implicit Euler at a fixed sub-step. Tune planet mass, entry speed, lateral offset and orbital phase, and read the live speed, closest approach and distance-vs-time trace.

Space & Astronomy2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-orbital-slingshot ↗ Open standalone

This 2D companion runs the same moving-planet gravity-assist encounter as the 3D version on a flat top-down canvas: a side panel exposes planet mass, entry speed, lateral drift and orbital phase, a live readout tracks current speed, speed gain, closest flyby distance, mission time, live distance and deflection angle, and a distance-vs-time trace makes the exact moment of closest approach — and how sharply it bends the trajectory — directly visible instead of hidden inside a free-orbiting 3D camera.

⚙ Under the hood

A 2D top-down gravity-assist encounter: a probe crosses a moving planet's inverse-square field, integrated with semi-implicit Euler. Tune planet mass, entry speed, lateral offset and orbital phase, and read the live speed, closest approach and distance-vs-time trace.

gravity assistorbital slingshottwo-body probleminverse-square lawsemi-implicit eulerorbital mechanics2d

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

What did you find?

Add reproduction steps (optional)