Constraint Class
Base constraint class.
Constructor
Item Index
Methods
Methods
setRelaxation
(
-
relaxation
Set relaxation for this constraint.
Parameters:
-
relaxation
Number
setStiffness
(
-
stiffness
Set stiffness for this constraint.
Parameters:
-
stiffness
Number
update
()
Updates the internal constraint parameters before solve.
Properties
collideConnected
Boolean
Set to true if you want the connected bodies to collide.
Default: true
DISTANCE
Number
static
equations
Array
Equations to be solved in this constraint
GEAR
Number
static
LOCK
Number
static
PRISMATIC
Number
static
REVOLUTE
Number
static
type
Number
The type of constraint. May be one of Constraint.DISTANCE, Constraint.GEAR, Constraint.LOCK, Constraint.PRISMATIC or Constraint.REVOLUTE.