pXent_addtorqueglobal ( entity, VECTOR* vecTorque );

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.

Parameters:

entity registered Entity pointer (Actor)
vecTorque Vector determining the torque to be exerted on entity, independent of the object orientation


Returns:

1 if successful, 0 otherwise.

Speed:

Fast

Example:

pXent_addtorqueglobal(my, vector(0,0,15*time_step));

See also:

pXent_addforceglobal, pXent_addtorquelocal , pXent_addforcecentral