← LAB
N-Body Gravity
Jun 8, 2026Every body attracts every other body with a force proportional to their masses and inversely proportional to the square of their distance. With two bodies, the motion is a perfect ellipse. Add a third, and the system becomes chaotic. This simulation uses a symplectic Euler integrator with softening to prevent singularities.
PRESET
G100
SPEED
TRAILS
LENGTH
VELOCITY