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) |