Phaser API Documentation

  Version: 
constraint: MatterJS.ConstraintFactory

Description:

A reference to the Matter.Constraint module.

The Matter.Constraint module 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.

Type:
MatterJS.ConstraintFactory
Since: 3.22.0