🌍 Public
Viewing a saved revision (read-only)
463a61a534564e69ac35ad485e4ac95b
Fork of Fork of SVG Fundamentals
Falling blocks and circles tumble and bounce inside a rotating rectangular container rendered on an HTML canvas. Matter.js handles the 2D physics simulation, including gravity, collisions, and restitution, while a custom constraint system translates world coordinates into the box's local space to keep bodies within its moving walls. The box itself rotates continuously, creating shifting boundaries that redirect the objects' motion.
AI-generated description