Spinning Heptagon with Bouncing Balls

20 numbered balls drop from the center of a rotating heptagon, affected by gravity, friction, and collisions.

Balls Active
20
Collisions/sec
0
Heptagon Rotation
Gravity
ON

Physics: Each ball has mass, velocity, and angular spin. They collide elastically with each other and with the rotating heptagon walls. Gravity pulls downward, friction gradually slows motion, and the heptagon completes a full 360° rotation every 5 seconds.

Interactions: Use buttons to toggle gravity, friction, and ball spin. The simulation runs entirely in your browser with custom collision detection.