Super Super

Ball Bounce Lab

Physics sandbox
Click or drag to launch · Space to drop
Bounces 0 Peak height 0.00 m Time 0.00 s Energy 100% Ready. Adjust the sliders or click the canvas.

A ball's bounce is not a mystery — it is gravity, restitution and friction playing out frame by frame. Ball Bounce Lab lets you change those three numbers and watch the trajectory respond in real time.

What you are actually changing

Every frame, the simulation applies a downward acceleration of g to the ball's vertical velocity. When the ball reaches the floor, its vertical velocity is multiplied by the restitution coefficient (the "Bounce" slider). A restitution of 1.0 would return all of the ball's speed; 0.72 returns about 72% of the speed, which is roughly 52% of the kinetic energy. Friction bleeds a small amount of horizontal speed on each contact, so a ball that starts with sideways motion gradually slows down.

Because energy is lost on every bounce, the peak height of each successive arc shrinks geometrically. That is why a real ball settles quickly rather than bouncing forever.

Try these experiments

  • Moon preset — gravity drops to 1.6 m/s². The ball hangs in the air far longer and each bounce takes roughly 2.5× as long as on Earth.
  • Super bouncy — restitution near 0.95. The ball keeps most of its speed and the arcs decay slowly.
  • Heavy — dead bounce — restitution near 0.2. The ball thuds and stops after two or three contacts.
  • Friction test — drag the ball sideways from the canvas with high friction and watch the horizontal travel shrink.

How to read the numbers

The readout tracks the number of floor contacts, the highest point the ball has reached since the last drop, elapsed simulation time, and remaining energy as a percentage of the initial drop. The energy figure is a rough estimate based on the ball's current speed relative to its launch speed — it is a teaching aid, not a rigorous physics measurement.

Limitations

This is a simplified 2D model. It ignores air resistance, spin, deformation of the ball, and the fact that real restitution depends on impact speed. The floor is perfectly flat and the walls are perfectly elastic. It is designed to build intuition, not to predict a specific real-world ball's behaviour.

Frequently asked questions

Why does the ball eventually stop?

Each bounce removes energy through restitution, and friction removes horizontal speed. Once the ball's vertical speed after a bounce is small enough that it cannot rise above the floor, the simulation treats it as resting.

Can I launch the ball at an angle?

Yes. Click or drag inside the canvas. The drag direction sets the launch velocity, so you can throw the ball sideways or upward.

What does the download contain?

A JSON file with the current settings, the number of bounces, peak height, elapsed time and the ball's final position. It is a record of your run, not a video.

Does this work on a phone?

Yes. The canvas is responsive and the controls are touch-friendly. Drag with one finger to launch.

Related tools