Labs · Forces
Gravitational Attraction
Newton's law of universal gravitation: F = G·m₁·m₂ / d². Every body pulls on every other body (an n-body simulation), so orbits, slingshots and ejections emerge without being programmed.
Planets start with exactly the tangential speed needed for a circular orbit, v = √(G·M / r), but their pulls on each other slowly disturb those orbits.
Click and drag to launch a new planet. Drag direction and length set its velocity, like a slingshot.
Controls
- Gravitational constant G
- Planets
- Central star
- Trails
Evolved into The Three-Body Problem, Colliding Galaxies.