OptionalbodyOptionalbodyThe second possible Body that this constraint is attached to.
OptionaldampingA Number that specifies the damping of the constraint,
i.e. the amount of resistance applied to each body based on their velocities to limit the amount of oscillation.
Damping will only be apparent when the constraint also has a very low stiffness.
A value of 0.1 means the constraint will apply heavy damping, resulting in little to no oscillation.
A value of 0 means the constraint will apply no damping.
OptionalidAn integer Number uniquely identifying number generated in Composite.create by Common.nextId.
OptionallabelAn arbitrary String name to help the user identify and manage bodies.
OptionallengthA Number that specifies the target resting length of the constraint.
It is calculated automatically in Constraint.create from initial positions of the constraint.bodyA and constraint.bodyB.
OptionalpointA Vector that specifies the offset of the constraint from center of the constraint.bodyA if defined, otherwise a world-space position.
OptionalpointA Vector that specifies the offset of the constraint from center of the constraint.bodyA if defined, otherwise a world-space position.
OptionalrenderAn Object that defines the rendering properties to be consumed by the module Matter.Render.
OptionalstiffnessA Number that specifies the stiffness of the constraint, i.e. the rate at which it returns to its resting constraint.length.
A value of 1 means the constraint should be very stiff.
A value of 0.2 means the constraint acts like a soft spring.
OptionaltypeA String denoting the type of object.
The first possible
Bodythat this constraint is attached to.