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.
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. |
1 if successful, 0 otherwise.
Fast
pXent_getvelocity(my, temp, nullvector); vec_inverse(temp); vec_scale(temp,0.5); pXent_addforcecentral(my, temp);