Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SplitSolver

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

Hierarchy

Index

Constructors

constructor

Properties

equations

equations: Equation[]

All equations to be solved

iterations

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.

subsolver

subsolver: GSSolver

subsolver

tolerance

tolerance: number

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

Methods

addEquation

createNode

  • createNode(): SplitSolverNode

removeAllEquations

  • removeAllEquations(): void

removeEquation

solve

  • solve(dt: number, world: World): number