Rapier2D Tutorial
You can find Godot Rapier2D on GitHub or Godot Asset Library.
How to install the Rapier 2D plugin
To install the Rapier 2D plugin in Godot Editor:
- Open the AssetLib tab.
- Search for Rapier 2D and click on the plugin.
- Click Download and then Install.
- Restart when prompted.
To enable the plugin:
- Go to Project -> Project Settings -> General tab.
- Go to Physics -> 2D. Enable Advance Settings.
- At Physics Engine select Rapier2D.
- Restart when prompted.
Notes
It should be noted that Rapier does not have warm starting capabilities. This means that in specific configurations, such as a stack of boxes or a pyramid of boxes, its stability will be less than that of Box2D.
That’s why, by default, the number of iterations in Rapier is set relatively high. This comes with a performance cost, but it still remains at the forefront in terms of performance. This higher iteration count helps to mitigate the aforementioned stability issue. Hopefully, this feature will be implemented in rapier in the future.
Hopefully, this feature will be implemented in rapier in the future.