kaplay-physics-rapier
v0.0.3
Published
This plugin integrates the Rapier physics engine into KAPLAY, including rigidbodies and joints and some pre-made utility functions like `jump()` and `isGrounded()`.
Downloads
1
Readme
kaplay-physics-rapier
This plugin integrates the Rapier physics engine into KAPLAY, including rigidbodies and joints
and some pre-made utility functions like jump()
and isGrounded()
.
Installation
mpm i kaplay-physics-rapier
Usage
import rapierPlugin, { load } from "kaplay-physics-rapier";
import kaplay from "kaplay";
await load();
const k = kaplay({
plugins: [ rapierPlugin() ],
});