Comet Gravity Assist: Hyperbolic Flyby Deflection (2D)
2D gravity-assist lab: a comet or probe flies past Jupiter, Saturn, Earth, Venus or Mars on an exactly integrated hyperbola, with the bend-angle formula, conserved v_inf and the Sun-frame speed gain checked live.
This 2D companion drives the same Newtonian gravity-assist physics as the 3D scene through a plain top-down canvas built for reading the orbit rather than orbiting a rendered planet: the comet is placed directly on the exact hyperbolic solution for the chosen approach speed and impact parameter, three sliders (approach speed, impact parameter, planet mass) let you reshape the encounter, and a live panel sets the closed-form predicted deflection angle side by side with the angle actually measured from the RK4-integrated flight path, along with energy and angular-momentum drift as a running accuracy check, so the slingshot effect that reshapes real spacecraft and comet trajectories is directly verifiable instead of just animated.
A 2D gravity-assist lab: the comet is placed directly on the exact Newtonian hyperbolic orbit for the chosen approach speed, impact parameter and planet mass, propagated with adaptive-step RK4 under 1/r² gravity, while a live panel compares the closed-form predicted deflection angle against the angle actually measured from the simulated flyby, alongside energy and angular-momentum drift as an integration accuracy check.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install