pXent_setangvelocity ( entity, VECTOR* speed );

Sets the angular velocity vector of the actor. The angular velocity vector can be visualized as the axis of the desired rotation, and the magnitude of this vector determines the desired speed in degrees per second, e.g. (0,0,10) will make an object spin around the global z-axis with a speed of 10 degrees per second.

Parameters:

entity registered Entity pointer (Actor)
speed This vector defines the angular velocity of the actor.

Returns:

Nonzero if successful, 0 otherwise.

Remarks:

Speed:

Fast

Example:

pXent_setangvelocity(my, vector(10, 0, 0)); // set angular velocity in PAN rotation.

See also:

pXent_setvelocity