Interactive orbital physics

2D Gravity Simulator: Two Planets

Keep one planet fixed in space, then tune the orbiting planet’s starting distance and velocity to create circles, ellipses, flybys, or crashes.

Live 2D orbit view

The yellow planet is stationary. The blue planet moves under gravity from the fixed planet.

Running
Stationary planet Orbiting planet Motion trail
⚡ Built with Vibe Studio