Interface ConstMassProperties

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
MassProperties

public interface ConstMassProperties extends ConstJoltPhysicsObject
Read-only access to a MassProperties object. (native type: const MassProperties)
  • Method Details

    • decomposePrincipalMomentsOfInertia

      boolean decomposePrincipalMomentsOfInertia(Mat44 storeRotation, Vec3 storeDiagonal)
      Decompose the inertia tensor into a diagonal matrix and a right-handed rotation matrix. The properties are unaffected.
      Parameters:
      storeRotation - storage for the rotation matrix (not null, modified)
      storeDiagonal - storage for the diagonal matrix (not null, modified)
      Returns:
      true if successful, otherwise false
    • getInertia

      Mat44 getInertia()
      Copy the inertia tensor. The properties are unaffected.
      Returns:
      a new matrix (in kilogram.meters squared)
    • getMass

      float getMass()
      Return the mass. The properties are unaffected.
      Returns:
      the mass (in kilograms, ≥0)