pXent_addvelglobal ( entity, VECTOR* vecSpeed, VECTOR* vecPos);

pXent_addvellocal ( entity, VECTOR* vecSpeed, VECTOR* vecPos);

Adds linear and angular velocity to the specified entity, at the position given by the vecPos vector in local (entity) or global (world) coordinates. The vecSpeed vector is independent of the object's current orientation.

Parameters:

entity registered Entity pointer (Actor)
vecSpeed Speed vector
vecPos Position where the speed is added.

Returns:

Nonzero if successful, 0 otherwise.

Remarks:

Speed:

Fast

Example:

pX_setgravity( nullvector );
pXent_setmass( my, 10 );
pXent_setdamping(my,0,0);
pXent_addvellocal( my, vector(50,0,0), vector(100,0,0) );

See also:

pXent_addforcelocal, pXent_addtorquelocal, pXent_addforceglobal, pXent_addtorqueglobal, pXent_addvelcentral