<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothBodyComponent/TargetShape/PositionConstraint",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C13BodyComponentV11TargetShapeV18PositionConstraintV"
  },
  "title" : "ClothBodyComponent.TargetShape.PositionConstraint"
}
-->

# ClothBodyComponent.TargetShape.PositionConstraint

A constraint that pulls a particle towards a certain position.

```
struct PositionConstraint
```

## Topics

### Creating a constraint

[`init(position: SIMD3<Float>, stiffness: Float)`](/documentation/RealityKit/ClothBodyComponent/TargetShape/PositionConstraint/init(position:stiffness:))

Creates a position constraint with the given target position and stiffness.

### Configuring the constraint

[`var stiffness: Float`](/documentation/RealityKit/ClothBodyComponent/TargetShape/PositionConstraint/stiffness)

The stiffness by which the particle is pulled towards the position.

### Instance Properties

[`var position: SIMD3<Float>`](/documentation/RealityKit/ClothBodyComponent/TargetShape/PositionConstraint/position)

The target position.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)