Rapier is a high-performance physics engine written in Rust that simulates realistic motion, collisions, and constraints in 2D (and 3D) space. It calculates trajectories, collision detection, impulse resolution, and joint constraints without you writing physics math from scratch. Rapier is designed for speed, safety (Rust's type system), and WebAssembly compilation, making it ideal for web-based and desktop games. The engine handles rigid bodies (objects with mass and inertia), colliders (shapes that detect collisions), and joints (hinges, springs, fixed attachments). Game developers feed in initial velocities and forces, and Rapier computes the next frame's positions, rotations, and collision responses.