Home▸AI & Machine Learning▸Gravity Assist Maneuver: Hyperbolic Flyby Lab (2D)

Gravity Assist Maneuver: Hyperbolic Flyby Lab (2D)

A real two-body hyperbolic flyby: tune the approach speed, impact parameter and planet mass, then read the deflection, eccentricity and the sun-frame Δv the maneuver actually gains.

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-gravitational-maneuver ↗ Open standalone

This 2D companion strips the maneuver down to the physics that actually drives a gravity assist: a spacecraft on a hyperbolic path around a fixed planet, integrated with RK4 under real inverse-square gravity. The impact parameter sets how sharply the trajectory bends, the planet-mass slider sets the pull, and the "planet orbital speed" control shows why the same flyby that looks like a simple turn in the planet's frame becomes a real speed gain (or loss) once you add the planet's own motion back in — the actual mechanism NASA uses for Voyager- and Cassini-style slingshots.

⚙ Under the hood

RK4-integrated two-body hyperbolic flyby with live eccentricity, periapsis and deflection-angle readouts, plus a Galilean frame transform showing the sun-frame Δv gained from the maneuver.

gravity assistorbital mechanicshyperbolic trajectorytwo-body problemslingshot

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

What did you find?

Add reproduction steps (optional)