Physics engines add dynamic and fun interaction to games and realtime animations. Rapier is a fast, stable physics engine built with Rust. It works well with JavaScript and Three.js.
Code on GitHub: https://github.com/bobbyroe/physics-with-rapier-and-three