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

# init(for:)

Creates a target shape that is compatible with the given [`ClothBodyComponent`](/documentation/RealityKit/ClothBodyComponent).

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

## Parameters

`bodyComponent`

The body component that this target shape will be applied to.

---

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)