Bouncing Ball Simulation

Tweak gravity, bounciness, 1–5 multi-ball modes, air drag, time speed, and sphere escape gates inside a rotating gridded cage.

Speed: 1.00x / 3.00x Bounces: 0 Resets: 0
3x Runaway Speed Reached — Resetting Loop
Paused
Tweak Presets:
2
0.35 g
1.03
1x
0.7 rad/s
0°
1x
0
0.75

Find Next in Ball Physics

Deep Dive Guide: Read our step-by-step math explainer on Coefficient of Restitution & Bounce Physics.
Read Full Guide →

Guided Bouncing Ball Physics Experiments

Use these four experiments to explore energy amplification, slow-motion impacts, angular spin grip, and rotating escape doors.

1. Superelastic Runaway Loop

With restitution at 1.04, every wall rebound gains 4% speed until hitting the 3x safety cap and resetting.

2. Bullet-Time 5-Ball Collisions

Slow Time Speed to 0.35x with 5 orbs so you can observe individual sphere-to-sphere impulses clearly.

3. Rotating Escape Gate Challenge

Open a 42° spinning doorway on the rim and watch multi-balls dodge and slip out as the gate sweeps beneath them.

4. Air-Damped Equilibrium

Combine e = 1.02 with Air Drag = 0.04 to watch bounce growth balance fluid resistance in steady orbit.

Bouncing Ball Physics Inside a Rotating Sphere

Unlike a flat floor where every rebound points straight upward along the y-axis, a circular or spherical arena redirects motion continuously along its inward surface normal n = (p - c) / |p - c|. Whenever an orb strikes the perimeter, the engine decomposes its velocity vector into a normal component perpendicular to the wall and a tangential component gliding along the rim.

v'n = -e · (v · n)  |  ΔEk = ½ m vn² (e² - 1)  |  vwall = ω × R

When the coefficient of restitution e stays below 1.00, every impact converts kinetic energy into heat and sound, causing bounce height to decay exponentially. Setting e > 1.00 injects rebound energy on each strike until peak velocity hits 3.00x initial speed and triggers an automatic clean reset. Adding an optional Escape Gate Gap lets orbs exit whenever their contact normal sweeps across the spinning arc opening.

Parameter Reference Table

ParameterRange / DefaultPhysical & Visual Effect
Ball Count1 – 5 (2)Active spheres with area-weighted pair collisions and polyrhythmic chimes
Gravity & Bounciness0–1.5 g / 0.4–1.08Controls downward pull and normal rebound gain or decay
Orb Size & Sphere Spin0.5–2x / ±2 rad/sScales collision frequency, chime pitch, and tangential rim friction
Escape Gate Gap0° – 70° (0°)Opens a spinning doorway on the rim that respawns escaped spheres
Time Speed & Air Drag0.25–2x / 0–0.08Slow-motion bullet time inspection plus atmospheric speed damping

Bouncing Ball Simulation FAQs

Why does the simulation reset at 3x speed?

Superelastic restitution above 1.00 compounds velocity exponentially; resetting cleanly at 3.00x keeps impacts visible and responsive at 60 FPS.

Does rotating the sphere actually spin the balls?

Yes. Each wall contact transfers tangential surface velocity equal to spin × radius onto the orb.

What happens when I open the Escape Gate Gap?

Balls whose contact angle passes through the spinning opening fly out cleanly and respawn near the center while incrementing the reset counter.