pXent_setvelocity ( entity, VECTOR* speed )

Sets the linear velocity of a dynamic actor.

Parameters:

entity registered Entity pointer (Actor)
speed vector that defines the linear velocity of the actor.

Returns:

Nonzero if successful, 0 otherwise.

Remarks:

Speed:

Fast

Example:

pXent_setvelocity(my, vector(10,0,0)); // set linear velocity in X direction.

See also:

pXent_setangvelocity, pXent_setposition