One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

PhysicsSimulationComponent.SolverIterations

struct · iOS 18.0+ · SDK 27.1

struct SolverIterations

The parameters that control the accuracy of solving physics simulations.

Members (5)

init · iOS 18.0+

init

TypeScript
static init(positionIterations?: number, velocityIterations?: number): PhysicsSimulationComponent_SolverIterations
Swift declaration
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`.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →