init(positionIterations: Int = 6, velocityIterations: Int = 1)
Creates a solver iterations configuration.
- 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`.
get · iOS 18.0+
positionIterations
TypeScript
get positionIterations(): number
Swift declaration
var positionIterations: Int
The number of position iterations the solver performs.
Use a value in the inclusive range `[1, 255]`.
The default value is `6`.
set · iOS 18.0+
positionIterations
TypeScript
set positionIterations(value: number)
Swift declaration
var positionIterations: Int
The number of position iterations the solver performs.
Use a value in the inclusive range `[1, 255]`.
The default value is `6`.
get · iOS 18.0+
velocityIterations
TypeScript
get velocityIterations(): number
Swift declaration
var velocityIterations: Int
The number of velocity iterations the solver performs.
Use a value in the inclusive range `[1, 255]`.
The default value is `1`.
set · iOS 18.0+
velocityIterations
TypeScript
set velocityIterations(value: number)
Swift declaration
var velocityIterations: Int
The number of velocity iterations the solver performs.
Use a value in the inclusive range `[1, 255]`.
The default value is `1`.