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

# init(mesh:materials:collisionShapes:mass:)

Creates a model entity with a particular mesh, set of materials, a
composite collision shape, and mass.

```
@MainActor @preconcurrency init(mesh: MeshResource, materials: [any Material] = [], collisionShapes: [ShapeResource], mass: Float)
```

## Parameters

`mesh`

A mesh that defines the geometry of the model.

`materials`

Material resources that define the appearance of the model.

`collisionShapes`

A collection of shape resources that define a composite collision shape.

`mass`

The mass of the model 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)