pXent_getangvelocity ( entity, VECTOR* OutVelocity);

Retrieve the angular velocity of a physics entity or a wheel. The angular velocity vector can be visualized as the axis of the rotation, and the magnitude of this vector determines the speed in degrees per second, e.g. (0,0,10) means that the object spins around the global z-axis with a speed of 10 degrees per second.

Parameters:

entity Registered entity pointer (Actor) or wheel joint.
OutVelocity To be set to the angular velocity vector of the entity. In case of a wheel, the y component gives the rotation speed.

Returns:

1 if successful, 0 otherwise.

Speed:

Fast

Example:

VECTOR vTemp;
pXent_getangvelocity(my, vTemp);

See also:

pXent_getbounds, pXent_getvelocity