---
title: "init(meshShape:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothcollidercomponent/init(meshshape:)"
---

# init(meshShape:)

Creates a cloth collider component with the given mesh shape.

## Declaration

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

## Parameters

- `meshShape`: Defines the mesh shape of the collider.

## See Also

### Creating a cloth collider

- [init(shape:)](realitykit/clothcollidercomponent/init(shape:).md)
- [init(mesh:bias:)](realitykit/clothcollidercomponent/init(mesh:bias:).md)
