60 releases (31 breaking)

Uses new Rust 2024

0.32.0 Jan 9, 2026
0.31.0 Nov 21, 2025
0.30.1 Oct 17, 2025
0.27.0 Jul 24, 2025
0.4.0 Nov 30, 2020

#1 in Simulation

Download history 4765/week @ 2025-10-23 4099/week @ 2025-10-30 4284/week @ 2025-11-06 3682/week @ 2025-11-13 3930/week @ 2025-11-20 4048/week @ 2025-11-27 3674/week @ 2025-12-04 4129/week @ 2025-12-11 7600/week @ 2025-12-18 4658/week @ 2025-12-25 4742/week @ 2026-01-01 2700/week @ 2026-01-08 6223/week @ 2026-01-15 4996/week @ 2026-01-22 7254/week @ 2026-01-29 12833/week @ 2026-02-05

31,852 downloads per month
Used in 64 crates (30 directly)

Apache-2.0

1.5MB
27K SLoC

crates.io

Build status crates.io crates.io

Website | Documentation


2D and 3D physics engines for the Rust programming language.


What is Rapier?

Rapier is a set of 2D and 3D physics engines for games, animation, and robotics. These crates are rapier2d, rapier3d, rapier2d-f64, and rapier3d-f64. They are written with the Rust programming language, by the Dimforge organization. It is forever free and open-source!

Getting started

The easiest way to get started with Rapier is to:

  1. Read the user-guides.
  2. Play with the examples: cargo run --release --bin all_examples2 and cargo run --release --bin all_examples3. Their source code are available on the examples2d/ and examples3d/ directory.
  3. Don't hesitate to ask for help on Discord, or by opening an issue on GitHub.

Resources and discussions

  • Dimforge: See all the open-source projects we are working on! Follow our announcements on our blog.
  • User guide: Learn to use Rapier in your project by reading the official User Guides.
  • Discord: Come chat with us, get help, suggest features, on Discord!
  • NPM packages: Check out our NPM packages for Rapier, if you need to use it with JavaScript/Typescript.

Please make sure to familiarize yourself with our Code of Conduct and our Contribution Guidelines before contributing or participating in discussions with the community.

Dependencies

~17MB
~391K SLoC