<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicsMassProperties/centerOfMass",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21PhysicsMassPropertiesV08centerOfD0s5SIMD3VySfG8position_So10simd_quatfa11orientationtvp"
  },
  "title" : "centerOfMass"
}
-->

# centerOfMass

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)