Skip to content

RigidBody

const RigidBody: Component

Physics body for an entity with Position + Collider. The body is created on the next fixed tick. After that, a dynamic body’s transform belongs to Rapier, which writes it back to Position (and Rotation, if present); a kinematic body follows Position. Moving bodies get Interpolate, so they look smooth on any refresh rate.