Torque ("angular force") will be applied to the specified entity. No linear movement is imparted upon the object, it will just change its rotation. The torque vector can be visualized as the axis of the desired rotation, and the magnitude of this vector determines the acceleration, e.g. (0,0,10) will make an object spin around the global z-axis.
entity | registered Entity pointer (Actor) |
vecTorque | Vector determining the torque to be exerted on entity, independent of the object orientation |
1 if successful, 0 otherwise.
Fast
pXent_addtorqueglobal(my, vector(0,0,15*time_step));