---
title: "init(position:stiffness:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothbodycomponent/targetshape/positionconstraint/init(position:stiffness:)"
---

# init(position:stiffness:)

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

## Declaration

```swift
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.
