Rapier is a fast physics engine written in Rust. This package provides easy to use components and hooks to use the Rapier physics engine in Threlte.
To start off, it’s best to get yourself comfortable with the basic concepts of rapier.
This package is under heavy development and its API is subject to change. Also be aware that currently only one Rapier-enabled Threlte instance is possible.
Make sure to have
npm install @threlte/rapier @dimforge/rapier3d-compat