NewtonBodyGetMass

From Newton Wiki
Jump to: navigation, search

NewtonBodyGetMass

void NewtonBodyGetMass (const NewtonBody* const body, dFloat* mass, dFloat* const Ixx, dFloat* const Iyy, dFloat* const Izz)

Usage

Get the mass matrix of a rigid body.

Parameters

  • const NewtonBody *bodyPtr - pointer to the body.
  • dFloat *mass - pointer to a variable that will hold the mass value of the body.
  • dFloat *Ixx - pointer to a variable that will hold the moment of inertia of the first principal axis of inertia of the body.
  • dFloat *Iyy - pointer to a variable that will hold the moment of inertia of the first principal axis of inertia of the body.
  • dFloat *Izz - pointer to a variable that will hold the moment of inertia of the first principal axis of inertia of the body.

Return

  • Nothing.

See also

NewtonBodySetMassMatrix NewtonBodyGetInvMass