---
title: "init(massProperties:material:mode:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/physicsbodycomponent/init(massproperties:material:mode:)"
---

# init(massProperties:material:mode:)

Creates a physics body component with the given mass properties, material, and mode.

## Declaration

```swift
init(massProperties: PhysicsMassProperties = .default, material: PhysicsMaterialResource? = nil, mode: PhysicsBodyMode = .dynamic)
```

## Parameters

- `massProperties`: The mass properties, like inertia.
- `material`: The material properties, like friction.
- `mode`: The simulation mode that indicates how a body responds to forces.

## See Also

### Creating a physics body component

- [init()](realitykit/physicsbodycomponent/init().md)
- [init(shapes:density:material:mode:)](realitykit/physicsbodycomponent/init(shapes:density:material:mode:).md)
- [init(shapes:mass:material:mode:)](realitykit/physicsbodycomponent/init(shapes:mass:material:mode:).md)
