IslandSolver Class
Splits the system of bodies and equations into independent islands
Constructor
Item Index
Properties
Events
Methods
addEquations
(
-
eqs
Add equations. Same as .addEquation, but this time the argument is an array of Equations
Parameters:
-
eqs
Array
removeAllEquations
()
Remove all currently added equations.
sortEquations
()
Sort all equations using the .equationSortFunction. Should be called by subclasses before solving.
Properties
equations
Array
Current equations in the solver.
equationSortFunction
Function | Boolean
Function that is used to sort all equations before each solve.
numIslands
Number
Number of islands. Read only.