Difference between revisions of "NewtonBodySetVelocity"

From Newton Wiki
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:02, 10 June 2019

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.

See also

NewtonBodyGetVelocity