<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicsSimulationComponent/SolverIterations-swift.struct/init(positionIterations:velocityIterations:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation26PhysicsSimulationComponentV16SolverIterationsV08positionG008velocityG0AESi_Sitcfc"
  },
  "title" : "init(positionIterations:velocityIterations:)"
}
-->

# init(positionIterations:velocityIterations:)

Creates a solver iterations configuration.

```
init(positionIterations: Int = 6, velocityIterations: Int = 1)
```

## Parameters

`positionIterations`

The number of position iterations the solver performs,
in the inclusive range `[1, 255]`.
The default value is `6`.

`velocityIterations`

The number of velocity iterations the solver performs,
in the inclusive range `[1, 255]`.
The default value is `1`.

---

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)