Contents

init(positionIterations:velocityIterations:)

Creates a solver iterations configuration.

Declaration

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.