Awesome
<p align="center"> <img src="https://github.com/appsinacup/godot-rapier-physics/blob/main/logo.jpg?raw=true"/> </p> <p align="center"> <img src="https://github.com/appsinacup/godot-rapier-physics/actions/workflows/runner.yml/badge.svg?branch=main" alt="Godot Rapier Build"></a> <img src="https://img.shields.io/badge/Godot-4.2-%23478cbf?logo=godot-engine&logoColor=white" /> </p> <p align = "center"> <strong> <a href="https://github.com/appsinacup/godot-rapier-physics/blob/main/CONTRIBUTING.md">Contributing</a> | <a href="https://godot.rapier.rs">Documentation</a> | <a href="https://discord.gg/56dMud8HYn">Discord</a> </strong> </p><p align = "center"> <b>2D and 3D physics engine</b> <i>for the Godot game engine.</i> </p>
Godot Rapier Physics is a 2D and 3D physics drop-in replacement for the Godot game engine that adds stability through rapier and fluids through salva.
Installation
-
Automatic (Recommended): Download the plugin from the official Godot Asset Store using the
AssetLib
tab in Godot: -
Manual: Download the latest github release and move only the
addons
folder into your projectaddons
folder.
After installing, go to Advanced Settings
-> Physics
-> 2D
or 3D
. Change Physics Engine
to Rapier2D
or Rapier3D
.
Limitations
- SeparationRayShape missing.
- SoftBody3D missing.
- ConcavePolygonShape3D, HeightMapShape3D, 3D joints.
- Cross platform determinism.
- Double builds.
- Liquids Missing.
- No support for asymetric collisions (eg. object 1 hitting object 2 but object 2 not hitting object 1). More info here Rapier Collision groups and solver groups. This is the exact check rapier does:
(A.layer & B.mask) != 0 && (B.layer & A.mask) != 0
- Friction works differently than it does in Godot. The current formula is: friction is multiplied by other friction, bounce is taken the max value.
- Setting Center of Mass to Custom or Custom Inertia doesn't work right now.
- On web you cannot run both Rapier2D and Rapier3D at the same time.
Platforms
- Windows (x86_64, x86_32)
- macOS (x86-64 + arm64 Universal)
- Linux (x86_64)
- Android (x86_64, x86_32, arm64)
- iOS (arm64)
- Web (wasm32)