Skip to main content

<rigidbody>

Creates a physics rigid body. The rigid body has no shape but when <box> or <model> are added as children they will be attached as colliders.

Props

PropTypeDescriptionDefault
typeStringType of rigidbody. static, or kinematic.static
positionArrayPosition of the rigidbody.[0,0,0]
rotationArrayRotation of the rigidbody.[0,0,0]

Notes

  • If you plan to move a rigidbody or animate it, be sure to use kinematic for performance reasons.
  • We don't currently support dynamic rigidbodies but hope to in the future