Skip to content

Commit e448ec5

Browse files
committed
Added removeConstraint method.
1 parent d67daa9 commit e448ec5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/physics/matter-js/World.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ var World = new Class({
284284
return this;
285285
},
286286

287+
removeConstraint: function (constraint, deep)
288+
{
289+
Composite.remove(this.localWorld, constraint, deep);
290+
291+
return this;
292+
},
293+
287294
/**
288295
* Adds MatterTileBody instances for all the colliding tiles within the given tilemap layer. Set
289296
* the appropriate tiles in your layer to collide before calling this method!

0 commit comments

Comments
 (0)