Platform Compatibility
PC | Mac OSX | Oculus Quest |
---|---|---|
X | X | X |
Add a rotation torque in X,Y,Z either in world direction or relative to the rigidbody itself
Parameters:
- torque
- A string value
- relative Optional
- A boolean value
Example:
1 | obj.addTorque(torque, relative) |