StaticcreateCreates a new constraint.
All properties have default values, and many are pre-calculated automatically based on other properties.
See the properties section below for detailed information on what you can pass via the options object.
constraint
StaticcurrentReturns the current length of the constraint.
This is the distance between both of the constraint's end points.
See constraint.length for the target rest length.
the current length
The
Matter.Constraintmodule contains methods for creating and manipulating constraints. Constraints are used for specifying that a fixed distance must be maintained between two bodies (or a body and a fixed world-space position). The stiffness of constraints can be modified to create springs or elastic.See the included usage examples.
Constraint