phent_addtorqueglobal ( ENTITY* 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 desired rotation and the magnitude of this vector determines the desired acceleration, e.g. vecTorque (0,0,10000) will make an object spin around the globl z-axis.


entity the entity to be affected
vecTorque a vector determining the torque to be exerted on entity , independent of object orientation


1 if successful, 0 otherwise.




phent_addtorqueglobal(my, vector(0,0,10000));

See also:

phent_addforceglobal, phent_addtorquelocal, phent_addcentralforce ► latest version online