ORBITUS

NEWTONIAN GRAVITY SANDBOX

Spawn planets, set velocities, and watch orbital mechanics unfold in a mesmerising real-time N-body simulation.

⌄

OBSERVE

GRAVITATIONAL BALLET IN ACTION

ABOUT

WHAT IS ORBITUS?

Orbitus is a real-time Newtonian gravity sandbox. Click and drag to spawn celestial bodies with velocity, then watch as gravity does the rest — stable orbits, chaotic scattering, collisions and mergers all emerge from the same simple force law. Choose from five curated presets or create your own cosmic systems from scratch. Zero dependencies. Pure physics. Infinite possibilities.

PRESETS

FIVE CURATED SYSTEMS TO EXPLORE

☀️

Solar System

A pinned star with six orbiting planets of varying mass and distance. The classic setup.

⚛️

Binary Stars

Two massive stars locked in mutual orbit with circumbinary planets threading between them.

∞

Figure-8

The famous Chenciner–Montgomery solution: three equal bodies tracing a figure-eight path.

🌀

Chaos

25 random bodies in a cosmic arena. Collisions, mergers, and ejections guaranteed.

🔺

Lagrange

A star with planet and Trojan asteroids at the stable L4/L5 Lagrange points.

MASS TIERS

FIVE CLASSES OF CELESTIAL BODY

Dwarf
MASS 40 · ICY BLUE
Rocky
MASS 150 · TEAL
Terrestrial
MASS 500 · GOLD
Giant
MASS 2,500 · ORANGE
Star
MASS 10,000 · CRIMSON

PHYSICS

REAL NEWTONIAN MECHANICS

⚡

Velocity Verlet Integration

Symplectic integrator preserving energy over long timescales. 6 substeps per frame for smooth, stable orbits.

🌌

N-Body Simulation

Every body attracts every other body — no shortcuts, no approximations. Pure gravitational complexity.

💥

Inelastic Collisions

Bodies that approach within merging distance combine mass and momentum, spawning particle explosions.

🔮

Orbit Prediction

While spawning, see a dotted trajectory showing where your body will go based on current gravitational field.

🎨

Dynamic Trails

Up to 400-point orbital trails with fade-out. Bright recent segments and dimmed history reveal orbital evolution.

📌

Body Pinning

Double-click any body to pin it in place as a fixed gravitational anchor. Perfect for building solar systems.

CONTROLS

INTUITIVE INTERACTION

Click + Drag Spawn body with velocity
1 — 5 Select mass tier
↑ ↓ Cycle mass up/down
Scroll Zoom in/out
Right-Drag Pan the camera
Space Pause / Resume
T Toggle trails
C Clear all bodies
Double-Click Pin/unpin a body
½× 1× 2× 4× Time scale controls

FEATURES

WHAT'S UNDER THE HOOD

✓ Real-time N-body gravitational simulation
✓ Velocity Verlet symplectic integrator
✓ Inelastic collision merging with particle FX
✓ Live orbit trajectory prediction while spawning
✓ 5 curated presets including Figure-8 & Lagrange
✓ 5 mass tiers with colour-coded bodies
✓ Pinnable fixed-position gravity anchors
✓ Smooth zoom & pan with camera controls
✓ Time controls: ½×, 1×, 2×, 4× speed
✓ Energy & body count HUD readout
✓ Touch-friendly with pinch-to-zoom
✓ Twinkling starfield background

TECH SPECS

BUILT WITH NOTHING BUT THE BROWSER

~700
LINES OF JS
0
DEPENDENCIES
1
HTML FILE
6
SUBSTEPS / FRAME
400
MAX TRAIL POINTS
60
FPS TARGET