init(position:stiffness:)
Creates a position constraint with the given target position and stiffness.
Declaration
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.