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

# init(position:stiffness:)

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

```
init(position: SIMD3<Float>, stiffness: Float)
```

## Parameters

`position`

The target position to pull the particle towards.

`stiffness`

The stiffness with which the particle is pulled towards `position`.

---

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)