<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothColliderComponent/init(meshShape:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C17ColliderComponentV9meshShapeAcA0c4MeshG0V_tcfc"
  },
  "title" : "init(meshShape:)"
}
-->

# init(meshShape:)

Creates a cloth collider component with the given mesh shape.

```
init(meshShape: ClothMeshShape)
```

## Parameters

`meshShape`

Defines the mesh shape of the collider.

---

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)