---
title: "init(for:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothbodycomponent/targetshape/init(for:)"
---

# init(for:)

Creates a target shape that is compatible with the given ClothBodyComponent.

## Declaration

```swift
init(for bodyComponent: ClothBodyComponent)
```

## Parameters

- `bodyComponent`: The body component that this target shape will be applied to.
