Equation Class
Base class for constraint equations.
Constructor
Methods
updateSpookParams
(
-
timeStep
Update SPOOK parameters .a, .b and .eps according to the given time step. See equations 9, 10 and 11 in the SPOOK notes.
Parameters:
-
timeStep
Number
Properties
maxForce
Number
Max force to apply when solving
minForce
Number
Minimum force to apply when solving
relaxation
Number
The number of time steps needed to stabilize the constraint equation. Typically between 3 and 5 time steps.
stiffness
Number
The stiffness of this equation. Typically chosen to a large number (~1e7), but can be chosen somewhat freely to get a stable simulation.