๐Ÿ€ Bouncy Ball Box

A box full of bouncy balls โ€” shake, tilt, add gravity wells, and watch the chaos unfold

How it works
Each ball has position, velocity, and radius. They bounce off walls and each other with coefficient of restitution. Gravity wells attract nearby balls creating orbital patterns.

Controls
โ€ข Add 10 โ€” spawn 10 random balls
โ€ข Shake โ€” randomize all velocities
โ€ข Gravity Well โ€” click to place an attractor
โ€ข Click/tap โ€” push balls away from cursor