20 numbered balls drop from the center of a rotating heptagon, affected by gravity, friction, and collisions.
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.