Options
All
  • Public
  • Public/Protected
  • All
Menu

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

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.

tolerance

tolerance: number

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

Methods

addEquation

removeAllEquations

  • removeAllEquations(): void

removeEquation

solve

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