---
title: ClothBodyComponent.TargetShape
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/clothbodycomponent/targetshape
---

# ClothBodyComponent.TargetShape

Pulls particles of a cloth body toward positions in either local or simulation space.

## Declaration

```swift
struct TargetShape
```

## Topics

### Creating a target shape

- [init(for:)](realitykit/clothbodycomponent/targetshape/init(for:).md)

### Constraining vertex positions

- [constraints](realitykit/clothbodycomponent/targetshape/constraints.md)
- [ClothBodyComponent.TargetShape.PositionConstraint](realitykit/clothbodycomponent/targetshape/positionconstraint.md)

### Configuring the target shape

- [weight](realitykit/clothbodycomponent/targetshape/weight.md)
- [space](realitykit/clothbodycomponent/targetshape/space.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Defining target shapes

- [targetShapes](realitykit/clothbodycomponent/targetshapes.md)
