A Torque is used to apply a torque to a part or assembly. When active, this object will find the center of mass of the part or assembly connected to its Attachment0 and will apply a torque, spinning the part or parts.
Direction of Torque
The direction of the spin is determined by the Torque.Torque and Torque.RelativeTo properties. The Torque defines the spin about the X, Y, and Z axes. However, these axes are oriented based on the RelativeTo property.
When RelativeTo is set to Enum.ActuatorRelativeTo.Attachment0, the torque will be oriented based on the local space of Attachment0. If Attachment0 moves or rotates, the torque will change to make sure it is still applying in the correct directions. Similarly, when RelativeTo is set to Enum.ActuatorRelativeTo.Attachment1, the torque will be applied based on Attachment1's orientation, regardless of the position or direction of Attachment0. Last, RelativeTo can be set to Enum.ActuatorRelativeTo.World, which will use the world coordinate system to determine the axes for rotation.