Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/appsinacup/godot-rapier-physics

Godot Rapier Physics – Rust GDExtension that integrates the Rapier physics engine as a drop in replacement for both 2d and 3d.
https://github.com/appsinacup/godot-rapier-physics

godot godot-engine godot4 godotengine rapier

Last synced: 8 days ago
JSON representation

Godot Rapier Physics – Rust GDExtension that integrates the Rapier physics engine as a drop in replacement for both 2d and 3d.

Awesome Lists containing this project

README

        




Works on: Desktop, Mobile and Web



Godot Rapier Build



Documentation | Changelog | Discord | Contributing | Architecture

-----


2D and 3D physics engine
for the Godot game engine.
with better stability, performance, liquids, determinism, state serialization and no ghost collisions.

-----

Godot Rapier Physics is a **2D and 3D** physics drop-in replacement for the [Godot game engine](https://github.com/godotengine/godot) through [rapier](https://github.com/dimforge/rapier) physics engine [salva](https://github.com/dimforge/salva) fluids simulation library.

# Features

Stability|Ghost Collisions
-|-
![](docs/rapier-vid.gif)|![](docs/ghost_collisions.gif)

Fluids 2D| Fluids 3D
-|-
![](docs/fluid_shader.gif)|![](docs/water_3d.gif)
**Serialization**|**Deserialization**
Save Physics State|Load Physics State
**Locally Deterministic**|***Optionally Cross Platform Deterministic**
Exact simulation every time (on same platform)|Exact simulation on multiple platforms
# Installation

- Automatic (Recommended): Download the plugin from the official [Godot Asset Store](https://godotengine.org/asset-library/asset/2267) using the `AssetLib` tab in Godot:
- [Rapier Physics 2D - Fast Version with Parallel SIMD Solver](https://godotengine.org/asset-library/asset/2267)
- [Rapier Physics 2D - Slower Version with Cross Platform Deterministic](https://godotengine.org/asset-library/asset/2815)
- [Rapier Physics 3D - Fast Version with Parallel SIMD Solver](https://godotengine.org/asset-library/asset/3084)
- [Rapier Physics 3D - Slower Version with Cross Platform Deterministic](https://godotengine.org/asset-library/asset/3085)

Note: For general use cases, use the **Faster Version**.

- Manual: Download the [latest github release](https://github.com/appsinacup/godot-rapier-physics/releases/latest) and move only the `addons` folder into your project `addons` folder.

After installing, go to `Advanced Settings` -> `Physics` -> `2D` or `3D`. Change `Physics Engine` to `Rapier2D` or `Rapier3D`.

# Implementation Progress

This plugin is still being developed. See the [Implementation Progress](https://godot.rapier.rs/docs/progress/) to get an idea of what status it is in and what features it has.

# Limitations

- Pin Softness is not supported
- Double builds are disabled for now (until salva supports double builds)
- No support for asymmetric collisions (eg. object 1 hitting object 2 but object 2 not hitting object 1). This is the exact check rapier does: `(A.layer & B.mask) != 0 || (B.layer & A.mask) != 0`