NewtonBodySetVelocity
NewtonBodySetVelocity
NewtonBodySetVelocity void NewtonBodySetVelocity( const NewtonBody* bodyPtr, const dFloat* velocity)
Usage
Set the global linear velocity of the body.
Parameters
- const NewtonBody *bodyPtr - is the pointer to the body.
- const dFloat *velocity - pointer to an array of at least three floats containing the velocity vector.
Remarks
- In 1.53, this function is only effective when called from inside the NewtonApplyForceAndTorque callback. As of 2.00, it can be called anywhere.