Bouncing Balls Pit Screensaver
The Bouncing Balls Pit screensaver simulates a pit of colorful balls with real elastic-collision physics, bouncing endlessly off walls and each other. It is free, runs in your browser, and ESC exits.
How the Bouncing Balls Pit screensaver works
The saver simulates each ball's real position and velocity, updated every frame.
Balls bounce elastically off the screen edges and exchange momentum realistically when they collide with each other.
Gravity gently pulls balls downward, so they settle and jostle like a real ball pit.
The simulation runs indefinitely, with balls in constant, believable motion.
A worked example
Two balls collide head-on and rebound apart at real physically consistent angles, exactly as elastic-collision math predicts.
Settings & tips
- Accent recolours a portion of the balls.
- Collisions use real elastic-collision momentum exchange.
- A classic, satisfying physics toy to watch.
Frequently asked questions
- Is this real physics?
- Yes — real elastic-collision and gravity simulation drives every ball's motion.
- Is a key needed?
- No — it is a pure local simulation.
- Is it free?
- Yes — free, no download, in your browser.
- How many balls are there?
- A moderate pit size tuned for smooth performance in any browser.