Contents

centerOfMass

The position of the center of mass and the orientation of the principal axes.

Declaration

var centerOfMass: (position: SIMD3<Float>, orientation: simd_quatf)

Discussion

The position defines the center of mass with a default value of (0, 0, 0), which means that the local origin of the model is the center of mass.

The orientation defines the principal axes, such the inertia matrix is a diagonal.

See Also

Getting mass properties