Rotating Heptagon — 2D Ball Physics
Twenty numbered balls fall under gravity inside a heptagon that spins once every five seconds. Ball–ball and ball–wall collisions, moving-wall bounce response, friction and spin are all computed by hand — no physics library.
Running
· t = 0.00 s
· wall = 0.0°
Space pause / resume · R reset · The printed numbers rotate with each ball, so spin is visible.