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

# init(shape:)

Creates a cloth collider component with the given shape.

## Declaration

```swift
init(shape: ClothColliderShape)
```

## Parameters

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

## See Also

### Creating a cloth collider

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