
Lab notes
This experiment connects a physics engine to Three.js. Objects fall, collide, and settle on a floor while the render loop mirrors the simulation every frame.
Techniques
Rigid-body dynamics with gravity, friction, and restitution. Matching collider shapes to mesh primitives. Syncing physics transforms into the Three.js scene graph each frame.
Stack
Three.js, a JS/WASM physics engine, lil-gui-style controls for spawn and reset. Static client-side demo on GitHub Pages.