Guides › Sandbox Mode
Switch the Solar System from clockwork to live gravity, then change anything and see what physics does with it.
While you're exploring, the planets move like clockwork. Each one follows its published orbit, calculated directly from the date. That's accurate and efficient, but it means nothing you add can affect them. A black hole parked next to the Sun couldn't move a planet that's on rails.
The first time you add something in Sandbox Mode, the Solar System is released. Every body is given its exact current position and velocity, so nothing jumps, and from then on everything pulls on everything else through Newton's law of gravity. The sandbox works in the same units as the published orbits (astronomical units, days and solar masses), so a released planet carries on along the same orbit it was already following, until you disturb it.
Under the hood, the simulation uses a leapfrog integrator. It's the same kind of method astronomers use for long orbit simulations, because energy doesn't slowly creep up or leak away over millions of orbits, and running time backwards retraces the same path. The time step shrinks automatically during close encounters so that a fast asteroid can't skip through a planet between two steps. If your device can't keep up, the clock slows down rather than the physics getting sloppy.
| Key | Tool | What it does |
|---|---|---|
| 1 | Select | Click anything to select it and lock the camera on. |
| 2 | Add | Pick an object from the tray, then click to place it or drag to throw it. |
| 3 | Grab | Drag any body, even the Sun. Let go while moving to fling it. |
| 4 | Explode | Blow a body apart. |
| 5 | Delete | Remove a body. |
| F | Throw | Throw another of whatever you last added (an asteroid to start with) at the crosshair. |
| H | Heat view | Paint every world by its temperature. |
| Ctrl+Z | Undo | Every add, throw, edit and explosion can be undone (and redone with Ctrl+Y). |
Hold Shift while throwing for ten times the speed. Right-drag and scroll to orbit and zoom around whatever you're locked onto. Press / to search for anything in the universe and go there without leaving the sandbox.
The tray covers the full range of objects in the universe, from small rocks to supermassive black holes:
Select anything and the inspector shows its orbit, speed, escape speed, temperature and makeup, all updated live. You can change its mass, radius, speed, day length and composition. Click a value to type an exact amount, such as "2 Earths" or "10 km/s". The consequences follow from the physics. Spin a planet fast enough and it flattens, then flies apart. Add enough mass to a gas giant and its core ignites as a star.
When two bodies meet, the outcome depends on their masses, speeds and the angle of impact, as it does in real collision research. Depending on those numbers you might see:
Each event opens a short report explaining what happened and the physics behind it. The sandbox also notices slower changes, such as a planet being captured by another star, a moon being stolen, or a world thrown out of the Solar System altogether.
The forecast panel shows what's about to happen. Gravity Lab runs a copy of your universe ahead of the real one, with the same physics and the same collisions, and lists the events it finds. Because the copy plays out its own collisions, it can predict chain reactions. For example, a black hole swallows the Sun, so the Earth loses its star, its orbit opens up, and it drifts away. Gravity with many bodies is chaotic, so the further ahead a prediction is, the less certain it is. The forecast says so.
Open the Library to jump straight into a famous "what if":
Sandbox Mode also includes a galaxy collider. Add spirals, dwarfs and giant ellipticals, then drag and throw them into each other. See When galaxies collide for the physics.