Difference between revisions of "NewtonBodySetFullMassMatrix"
m (1 revision imported) |
|
(No difference)
|
Latest revision as of 08:02, 10 June 2019
NewtonBodySetFullMassMatrix
void NewtonBodySetFullMassMatrix (const NewtonBody* const body, dFloat mass, const dFloat* const inertiaMatrix)
Usage
Set the mass matrix of a rigid body.
Parameters
- const NewtonBody* const body
- dFloat mass
- const dFloat* const inertiaMatrix
Return
- (Procedure)
Description
- Newton algorithms have no restriction on the values for the mass, but due to floating point dynamic
- range (24 bit precision) it is best if the ratio between the heaviest and the lightest body in the scene is limited to 200.
- There are no special utility functions in Newton to calculate the moment of inertia of common primitives.
- The application should specify the inertial values, keeping in mind that realistic inertia values are necessary for
- realistic physics behavior.
See also
NewtonConvexCollisionCalculateInertialMatrix NewtonBodyGetMass NewtonBodyGetInvMass