pXent_getvelocity ( entity, VECTOR* OutVelocity, VECTOR* PointLocal )

Retrieve the velocity vector at PointLocal in quants per second. If PointLocal is (0,0,0), this returns the linear velocity of the object. Otherwise the local point velocity.

Parameters:

entity registered Entity pointer (Actor)
OutVelocity will be set to the velocity of the point
PointLocal point to be sampled in entity coordinates, i.e. relative to the object's position and orientation.

Returns:

1 if successful, 0 otherwise.

Speed:

Fast

Example:

pXent_getvelocity(my, temp, nullvector);
vec_inverse(temp);
vec_scale(temp,0.5);
pXent_addforcecentral(my, temp);

See also:

pXent_getbounds