NewtonBodySetVelocity

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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