Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Rigidbody
  5. rotationConstraints

rotationConstraints

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Prevent the rigidbody from rotating on X, Y, or Z axis?

Parameters:

  • freezeX
    • A boolean value
  • freezeY
    • A boolean value
  • freezeZ
    • A boolean value

Example:

1
obj.rotationConstraints(freezeX, freezeY, freezeZ)
Tags
Was this article helpful to you? Yes No

How can we help?