PhysicsThree-Body Problem

Three masses, mutual gravity, no closed-form solution. Switch between the famous figure-8 orbit, the rotating Lagrange triangle, a sun + planets system, or pure chaos. Click a body to perturb it.

Loading engine…
FPS: — Bodies: — Step: — Drag or tap the canvas to interact. Switch renderer with the 2D / 3D / PixiJS buttons.
GitHub

Engine features used

Zero GravityCustom ForceOrbitalChaosN-Body

Related guides

More demos

All Physics demos →