25 bool DecomposePrincipalMomentsOfInertia(
Mat44 &outRotation,
Vec3 &outDiagonal)
const;
28 void SetMassAndInertiaOfSolidBox(
Vec3Arg inBoxSize,
float inDensity);
31 void ScaleToMass(
float inMass);
34 static Vec3 sGetEquivalentSolidBoxSize(
float inMass,
Vec3Arg inInertiaDiagonal);
40 void Translate(
Vec3Arg inTranslation);
46 void SaveBinaryState(
StreamOut &inStream)
const;
49 void RestoreBinaryState(
StreamIn &inStream);
#define JPH_EXPORT
Definition Core.h:236
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
#define JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(linkage, class_name)
Definition SerializableObject.h:80
Describes the mass and inertia properties of a body. Used during body construction only.
Definition MassProperties.h:16
Holds a 4x4 matrix of floats, but supports also operations on the 3x3 upper left part of the matrix.
Definition Mat44.h:13
static JPH_INLINE Mat44 sZero()
Zero matrix.
Definition Mat44.inl:30
Simple binary input stream.
Definition StreamIn.h:13
Simple binary output stream.
Definition StreamOut.h:13