✦ INTERACTIVE SIMULATION

N-Body Gravity

Every body attracts every other body simultaneously — real Newton's law of gravitation. Watch orbits form, stars collide, and chaos unfold.

👆
CLICK
Drop a body anywhere on the canvas
🖱️
CLICK & DRAG
Launch with velocity — longer drag = more speed
🌀
PRESETS
Pick a preset on the left — start with Figure-8
🔍
SCROLL / PINCH
Zoom in/out. Right-drag or two-finger to pan

Bodies: 0
Avg KE: 0
Collisions: 0
Time: 0s
⭐ Presets
🏆 Challenges
➕ Add Body
Mass 20
Color
⏯ Controls
Speed 1x
Gravity 500
📊 Live Data
0Bodies
0Collisions
0Avg KE
0Avg PE
🎯 Selected Body
Click a body to inspect it. Pause, then drag a selected body to reposition it.
CLICK Add body DRAG Launch with velocity RIGHT DRAG Pan SCROLL Zoom ? Tutorial