Appearance
Kiln API / kiln/physics / physicsPlugin
Function: physicsPlugin()
ts
function physicsPlugin(options?): Plugin;Rapier rigid bodies synced to Transform; steps in Fixed. Uses Rapier 3D, or Rapier 2D when the app is mode: '2d'. Order your own Transform/velocity writers with .before(CreateBodies) (inputs) or .after(WriteBackTransforms) (reactions).
Parameters
| Parameter | Type |
|---|---|
options | PhysicsOptions |