- Explore five invented orbital systems, including circular pairs and a sourced Newtonian figure-eight start.
- Launch bodies by dragging or entering exact coordinates, with model units and softening clearly explained.
- Inspect conservation diagnostics, share an exact starting system and save a labelled orbit card.
- Begin With an Orbit You Can Understand
- Five Starting Systems, Five Different Questions
- A Figure Eight Without an Invisible Track
- Launch a Body With an Arrow
- Softened Gravity Changes the Model
- The Discs Can Overlap Because They Are Symbols
- Read the Conservation Checks
- A Model Unit Is Not a Year
- Move the Camera Without Moving the Bodies
- Share the System You Actually Built
- Keep Exploring Motion and Surprises
A body that falls towards another body does not always hit it. Give it enough sideways motion and it can keep falling around it. Add another body, and the dance becomes much less obvious.
ContentBASE Gravity Playground is an interactive N-body sandbox for exploring invented orbital systems. Begin with a quiet orbit, try a figure-eight choreography, or launch something into the scene and see what changes.
Gravity Playground
Explore invented orbital systems, launch point masses and inspect numerical conservation checks.
Loading Gravity Playground… Enable JavaScript to explore.
Start with free Canva bundles
Browse the freebies page to claim ready-to-use Canva bundles, then get 25% off your first premium bundle after you sign up.
Free to claim. Canva-ready. Instant access.
1. Begin With an Orbit You Can Understand
The default preset contains a heavy body and a lighter companion. Their starting positions and velocities describe a circular pair for the applied softened force.
Both bodies move around their shared centre of mass. The heavier body is not secretly nailed to the background. Its smaller motion is part of the same calculation.
Press Play, or use +1 model time unit to step through the system deliberately. The displayed trail shows where each body has been, rather than an orbit drawn in advance.

2. Five Starting Systems, Five Different Questions
- A quiet orbit: a heavy body and a light companion in a barycentric circular start.
- Binary dance: two equal masses sharing the motion more visibly.
- Figure-eight start: three equal point masses using published Newtonian initial conditions.
- Three-body tangle: masses 3, 4 and 5 released from rest, ready to interact.
- Mini planetary system: a dominant mass with three smaller bodies in approximate circular starts.
The presets are invented educational systems. They are not a representation of the current Solar System or a prediction of an observed star system.
Presets start paused. The ordinary presets select the default softened force; the figure-eight start selects Newtonian point gravity so it uses the force law associated with that published solution.
3. A Figure Eight Without an Invisible Track
In the famous equal-mass figure-eight solution, three bodies follow the same eight-shaped curve at different phases. No rail, fixed central attractor or preprogrammed path tells them where to go.
The preset uses the initial positions and velocities credited to Carles Simó in Figure 1 of Chenciner and Montgomery’s paper. The published period is approximately 6.32591398 model time units.
The lab approximates that motion with rounded initial values and numerical integration. Try it, then add a body or change the force setting. You have changed the experiment, so the old choreography is no longer guaranteed.
4. Launch a Body With an Arrow
Enable Drag on the scene to launch. Start the drag where you want the body to appear, then pull in the direction of its initial motion. Longer arrows give larger initial velocities.
The launch readout shows the proposed position and velocity before release. The arrow represents half a model time unit of that initial velocity. You can also open Enter an Exact Position and Velocity for precise values.
When you add a body, the existing bodies keep their current positions and velocities. The lab appends the new body, pauses, and starts a fresh time-zero experiment with new diagnostic baselines.
This makes the intervention explicit. The new system’s energy includes the added body; it is not compared with an earlier system that did not contain it.
The sandbox holds up to 16 bodies. Choose a preset or clear the sandbox to begin again. A body leaving the camera view is still present in the calculation.
5. Softened Gravity Changes the Model
With Newtonian · ε 0, the solver uses point-mass Newtonian attraction. At very short distances, that force becomes difficult for a fixed numerical step to resolve.
Positive ε softens the close-range attraction using a modified denominator. It is a useful sandbox model, but it changes the physics near a close encounter. It is not merely a visual effect or a collision radius.
The matching energy calculation uses the corresponding softened potential. Comparing softened motion with an unsoftened energy formula would create a misleading diagnostic.
Changing the force selector restarts the applied initial positions and velocities under the new force. Reload a preset to recalculate its force-dependent circular starting velocities.
6. The Discs Can Overlap Because They Are Symbols
The model contains point masses. The visible discs help you see and identify them; their sizes are not physical planet radii.
There is no collision, bounce or merging rule. Two drawn discs can overlap while the point-mass calculation continues. With softening, even an extremely close passage follows the softened force rather than a physical impact model.
For Newtonian pairs closer than 0.02 model distance units, the lab stops before accepting an unresolved step. It also stops non-finite states or values beyond its stated workspace limits.
A stopped close encounter is not a claim that gravity switches off. It tells you this particular fixed-step experiment has reached a limit that needs a more suitable numerical method.
7. Read the Conservation Checks
Enable Compare with half-size integration steps for a separate calculation from the same applied start at 1/4000 model time unit. Positions are compared only at matching times. Disagreement demonstrates numerical sensitivity rather than a guaranteed error bound. A conservative swept-path guard also stops unsoftened encounters that may cross the unresolved 0.02-unit region between integration endpoints.
The lab uses a fixed-step velocity-Verlet integrator. It reports several checks alongside the attractive trails:
- Total energy: kinetic energy plus the matching gravitational potential, in model energy units.
- Largest sampled energy drift: the largest recorded energy change relative to the applied start, scaled by its initial kinetic energy plus the magnitude of its potential energy.
- Linear momentum change: the magnitude of the momentum difference from the applied start.
- Angular momentum change: the absolute change about the fixed coordinate origin.
The energy scale avoids dividing by a nearly zero net energy. Trails and diagnostics sample every 0.02 model time units, while the integration step is much smaller: 1/2000 of a model time unit.
Close interactions can stress this numerical method. The tool highlights sampled energy drift above 0.1% of the starting scale. It does not silently alter velocities to make the diagnostic look better.
Small conservation error is useful evidence, but it is not a certificate of an exact long-term trajectory.
8. A Model Unit Is Not a Year
The sandbox sets G = 1 and uses internally consistent model units. No conversion to kilometres, solar masses, days or years is implied.
The playback selector tells you how many model time units pass per real second. It does not change the fixed integration step. Each run stops at 60 model time units.
The clock includes time spent in background tabs. Throttled or suspended execution catches up in bounded batches when the browser can run the calculation. A deliberate pause stays paused after you return.
Reset returns to the applied starting system. Adding a body creates a new applied start; choosing a preset restores that preset’s own beginning.
9. Move the Camera Without Moving the Bodies
Zoom in, Zoom out and Fit bodies change the view. They do not change positions, velocities or the force calculation.
Follow centre of mass uses a moving display frame. Turning it off keeps the camera in the fixed coordinate frame. The body-state table continues to report positions and velocities in that fixed model frame.
If a fast body disappears from the scene, fit the bodies before assuming it has been deleted. The calculation retains it until a documented numerical or workspace limit stops the run.
10. Share the System You Actually Built
Copy system link stores the applied starting masses, positions, velocities, force setting and playback speed. It opens paused at time zero, ready for someone else to run.
A launch is included because adding a body creates a new applied starting state. The link does not store the later trail history or resume the current frame.
You can also preview and save a labelled orbit card with the current scene, model time, gravity setting and sampled energy diagnostic. Calculations, links and cards are created locally in your browser; no simulation state is uploaded.
11. Keep Exploring Motion and Surprises
For measured reference sizes and distances, try Solar System Explorer. Compare nearly identical physical starts in Chaos Lab, or grow mathematical artwork in Reaction–Diffusion Lab.
Browse the growing ContentBASE Tools collection for more interactive experiments with readable controls, stated assumptions and something worth sharing.