Scripting

Search The Documentation:

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

addTorque

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)
Tags
Was this article helpful to you? Yes No

How can we help?