phent_addtorquelocal ( 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 its local z-axis.

Parameters:

entity the entity to be affected
vecTorque a vector determining the torque to be exerted on entity (relative to objects's orientation)

Returns:

1 if successful, 0 otherwise.

Speed:

Medium

Example:

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

See also:

phent_addforceglobal, phent_addtorqueglobal, phent_addcentralforce ► latest version online