Gravity Well Sandbox

Drag 1–3 gravity wells across a warped grid, flip attract vs. repel polarity, tune orbital decay, or drag space to slingshot probes.

Wells: 1 Probes: 32 Peak v: 0 px/s
Paused
Tweak Presets:
1
32
1.2
1x
0
1x
0.85
Field & Well Motion

Find Next in Ball Physics

Deep Dive Guide: Read our orbital mechanics walkthrough on Inverse-Square Orbits & Slingshots.
Read Orbital Guide →

Guided Orbital Gravity Experiments

Experiment with Keplerian ellipses, decaying accretion spirals, anti-gravity scattering, and chaotic 3-body slingshots.

1. Keplerian Elliptical Loops

Drop Launch Speed to 0.70x around 1 central gravity well and watch probe colors shift hot coral at fast periapsis.

2. Accretion Spiral Decay

Enable 0.035 Orbital Drag Decay around a single star and watch circular rings slowly spiral inward toward the core.

3. Three-Body Chaotic Slingshot

Place 3 moving wells in orbit simultaneously—watch close passes accelerate probes sharply across the stage.

4. Repulsive Scattering Wells

Flip Field Polarity to Repel so wells push probes outward while the warped red grid bends away from each core.

Inverse-Square Orbital Physics & Gravitational Softening

Every probe in the Gravity Well Sandbox obeys Newton’s law of universal gravitation summed across all active attractors. Because raw point-mass 1 / r² attraction spikes toward infinity near zero distance, real-time N-body integrators include a small softening radius ε:

a = Σ G · Mi · ri / (|ri|² + ε²)3/2  |  vcirc = √(G · M / r)

Speed-mapped probe colors shift dynamically from cool emerald and cyan at slow apoapsis to hot coral at fast periapsis. Flipping polarity to Repel reverses gravitational potential so the field grid bows outward like electrostatic scattering.

Parameter Reference Table

ParameterRange / DefaultOrbital Effect
Gravity Wells & Probes1–3 / 6–60 (32)Sets active central attractors and orbiting tracer probes
Gravity G & Launch Speed0.2–2.5 / 0.4–1.6xControls pull strength and initial orbital eccentricity
Orbital Drag Decay0.00 – 0.05 (0.00)Simulates atmospheric drag causing orbits to spiral inward
Field Polarity & Time SpeedAttract/Repel / 0.25–2xReverses gravity force direction or scales simulation speed
Orbiting Multi-WellsOn / Off (Off)Allows multiple gravity wells to mutually orbit and sling probes

Gravity Well Sandbox FAQs

How do I move a gravity well or launch my own probe?

Drag directly on any central well ring to move it live, or click and drag dark space to slingshot a new probe along your aim vector.

Why do probe colors shift from cyan to coral?

Color tracks live probe speed—slow outer arcs glow emerald/cyan while high-speed inner flybys heat up to violet and coral.

Why do probes respawn if they escape?

Probes exceeding escape velocity exit the field and smoothly respawn into stable rings so the sandbox remains lively.