Godot Rapier 2D – GDExtension that integrates the Rust Rapier 2D physics engine

Godot Rapier2D

Godot Rapier2D Build Rapier2D Version Godot Version Contributors Activity Chat on Discord

A 2d rapier physics server for Godot Engine, implemented as a GDExtension.

Features

  • Parallel support (for non enhnanced determinism builds)
  • Single and Double float precision build.
  • SIMD (Single instruction, multiple data) build.
  • Cross-platform determinism build.

Limitations

Supported Platforms

  • Windows (x86_64, x86_32)
  • macOS (x86-64 + arm64 Universal)
  • Linux (x86_64)
  • Android (x86_64, arm64)
  • iOS (arm64)
  • Web (wasm32)

Installation

  • Automatic (Recommended): Download the plugin from the official Godot Asset Store using the AssetLib tab in Godot.
  • Manual: Download the github release and move only the addons folder into your project addons folder.
  • Build it yourself. Read more about it in the documentation.

After installing, go to Advanced Settings β†’ Physics β†’ 2D. Change Physics Engine to Rapier2D.

1 Like

Startin from version v0.6.8 updated the plugin to support Fluid2D node:

The new Fluid2D node supports fluids that support viscosity, surface tension and elasticity of fluids

What about 3d?

Right now Godot Rapier plugin works only for 2D. Not sure if it’s worth adding for 3D since there is already Jolt for 3D, and it works really well.
Rapier does support both 3D and 2D, but the effort of making it work for 3D also would have to be benefic/bring some value to justify it.

1 Like

Added sample shader to render the fluid: