Removes a Matter JS constraint, or array of constraints, from the world.
Triggers beforeRemove
and afterRemove
events.
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. |
This Matter World object.