Class GSSolver

Constraint equation Gauss-Seidel solver.

Todo

The spook parameters should be specified for each constraint, not globally.

See

https://www8.cs.umu.se/kurser/5DV058/VT09/lectures/spooknotes.pdf

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.

tolerance: number

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

Methods

  • Solve

    Parameters

    Returns number

    number of iterations performed