Rapier delivers 2D and 3D rigid-body physics crates for Rust games, animation, and robotics. SIMD-batched solvers, optional parallelism, and bindings for other languages are included.
Overview
Rapier ships as separate Rust crates for 2D and 3D simulation, including double-precision variants. Dimforge maintains the engines for games, animation, and robotics use cases with an open-source license.
The solver batches contact constraints with SIMD where hardware allows and falls back to scalar code otherwise. An optional parallel feature uses rayon across broad phase, narrow phase, and solver work, with guidance for heterogeneous CPUs.
C, JavaScript, Python, and Bevy plugin bindings are provided alongside Rust examples and testbed scenes. User-guide snippets are compiled to keep documentation aligned with the code.
Soft-body support, joint constraints, and integration notes for Unity and Unreal appear in the C binding documentation. Python packaging currently wraps the 3D f32 engine.
Key features
- 2D and 3D rigid-body simulation
- SIMD batched constraint solver
- Optional multithreaded pipeline
- Joint and constraint support
- Rust-first API with examples
- C, JS, and Python bindings
- Bevy integration plugins
- Soft-body physics support
Use cases
- Game physics in Rust projects
- Robotics motion simulation
- Animation tooling prototypes
- Cross-platform physics via bindings
- Bevy-based game prototypes