A playful n-body gravity simulator. Click to drop a planet into a perfect orbit, or drag to fling it and see what happens.
Mouse or touch. Drag to aim. Buttons control presets, trails and pause.
Every body pulls on every other body using Newton's law of gravity, with a small tweak so close passes stay stable.
When two bodies touch they combine, keeping their total mass and momentum. Big things eat small things.