RigidBodyType
physics/rigid-body.types.ts:23The simulation behaviour of a RigidBody.
dynamic— fully simulated: moved by gravity, forces, and collisions. The simulation owns the transform; it is written back onto the host every frame.fixed— immovable. Never integrated, infinite mass. The right choice for static level geometry (ground, walls).kinematic-velocity— moved only by a velocity you set; unaffected by forces or collisions, but pushes dynamic bodies out of its way. The simulation advances it and writes the result back to the host.kinematic-position— moved by directly steering the host transform; the body follows the host into the simulation and shoves dynamic bodies. The host owns the transform (you sethost.position/host.rotation), and the body is driven from it. Use this to script the motion of a platform or door that still needs to collide.
'dynamic' | 'fixed' | 'kinematic-velocity' | 'kinematic-position'