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

# init(shapes:mass:material:mode:)

Creates a physics body component deriving mass properties from shape and
mass.

```
@MainActor @preconcurrency init(shapes: [ShapeResource], mass: Float, material: PhysicsMaterialResource? = nil, mode: PhysicsBodyMode = .dynamic)
```

## Parameters

`shapes`

The shape for which to estimate the rotational inertia and center of mass.

`mass`

The mass of the object in kilograms.

`material`

The material properties, like friction.

`mode`

The simulation mode that indicates how a body responds to
forces.

---

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)