threlte logo
@threlte/rapier

Getting Started

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.

Installation

Make sure to have @threlte/core installed.

npm install @threlte/rapier @dimforge/rapier3d-compat