Class SplitSolver

Splits the equations into islands and solves them independently. Can improve performance.

Hierarchy (view full)

Constructors

Properties

equations: Equation[]

All equations to be solved

iterations: number

The number of solver iterations determines quality of the constraints in the world. The more iterations, the more correct simulation. More iterations need more computations though. If you have a large gravity force in your world, you will need more iterations.

nodePool: SplitSolverNode[]
subsolver: GSSolver

subsolver

tolerance: number

When tolerance is reached, the system is assumed to be converged.

Methods

  • Solve the subsystems

    Parameters

    Returns number

    number of iterations performed