<!--
{
  "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/init(shape:mass:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21PhysicsMassPropertiesV5shape4massAcA13ShapeResourceC_Sftcfc"
  },
  "title" : "init(shape:mass:)"
}
-->

# init(shape:mass:)

Creates the mass properties for a solid shape with the specified mass.

```
@MainActor @preconcurrency init(shape: ShapeResource, mass: Float)
```

## Parameters

`shape`

The shape for which to calculate the mass frame.

`mass`

The mass of the object in kilograms.

---

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)