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

# ClothBodyComponent.TargetShape.PositionConstraint

A constraint that pulls a particle towards a certain position.

## Declaration

```swift
struct PositionConstraint
```

## Topics

### Creating a constraint

- [init(position:stiffness:)](realitykit/clothbodycomponent/targetshape/positionconstraint/init(position:stiffness:).md)

### Configuring the constraint

- [stiffness](realitykit/clothbodycomponent/targetshape/positionconstraint/stiffness.md)

### Instance Properties

- [position](realitykit/clothbodycomponent/targetshape/positionconstraint/position.md)

## Relationships

### Conforms To

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

## See Also

### Constraining vertex positions

- [constraints](realitykit/clothbodycomponent/targetshape/constraints.md)
