SIMULATORS · BFOTKIT

Gravity Simulator | BFOTKit

Watch planets orbit a central star under plain inverse-square gravity, with adjustable speed and a glowing trail.

The simulation runs entirely in this browser tab. Nothing is uploaded.

GUIDE

Getting stable, pretty orbits

Circular orbits come from velocity

Each body starts at exactly the speed needed for a circle at its radius. That is why the default system stays stable for ages.

Inverse-square attraction

Force falls off with the square of distance, softened slightly to prevent slingshot glitches at close range.

The trail shows eccentricity

Perfect circles leave a ring. Nudge anything and the trail becomes an ellipse — or an escape.

HELP / FAQ

Orbit questions

Is this real physics?

It is a simplified two-dimensional n-body integration — qualitatively right, not flight-accurate.

Why do bodies eventually drift?

Numerical integration loses a little energy every step, so orbits slowly precess or decay.

Can a planet escape?

Yes — perturbations can push a body past escape velocity; it will fly off and wrap out of view.

Does it run locally?

Yes — the bodies live entirely in this browser tab.

EXPLORE BY CATEGORY · BFOTKIT

More tools like this

Pick a category to see every tool in it — then open one and discover related tools.

Browse all tools