Phaser API Documentation

  Version: 
removeConstraint(constraint, [deep])

Description:

Removes a Matter JS constraint, or array of constraints, from the world.

Triggers beforeRemove and afterRemove events.

Parameters:

name type arguments Default description
constraint MatterJS.ConstraintType | Array.<MatterJS.ConstraintType>

A Matter JS Constraint, or an array of constraints, to be removed.

deep boolean <optional> false

Optionally search the objects children and recursively remove those as well.

Returns:
Description:

This Matter World object.

Since: 3.0.0