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