20 numbered balls drop from the center, affected by gravity and friction, collide with each other and bounce off the rotating heptagon walls. Each ball's spin is visualized by the rotation of its number.
Heptagon Rotation
0°
Active Balls
20
Total Collisions
0
Simulation Speed
1.00x
Physics Features:
Heptagon Rotation: Completes a full 360° rotation every 5 seconds (72°/second).
Ball Physics: Each ball has mass, velocity, angular velocity, and experiences gravity (downward) and air friction.
Collision Detection: Implemented from scratch for ball‑ball and ball‑wall collisions with realistic bounce.
Ball Spin: The number on each ball rotates according to its angular velocity, showing individual spin.
Energy Loss: Collisions have restitution (bounciness) and friction coefficients for realistic behavior.