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

# init(mesh:bias:)

Creates a cloth collider component with a mesh shape built from the given mesh resource.

```
init(mesh: ClothMeshResource, bias: Float)
```

## Parameters

`mesh`

Defines the mesh resource to use for the shape of the collider.

`bias`

The distance by which the mesh vertices are extended outwards along the direction of their normals.

---

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)