🏀 Bouncing Balls (2D): Restitution, Energy Loss and Collisions in a Box
2D bouncing balls in a box: gravity, wall and ball-ball restitution, drag, energy ledger and drop-test bounce times checked against closed-form formulas.
⚙ Under the hood
2D companion of the bouncing-balls box: gravity, restitution, ball-ball collisions, an energy ledger and drop-test bounce times checked against closed-form formulas.
CollisionsRestitutionEnergyGravityCanvas 2D
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install