mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-26 13:49:01 -05:00
added mouse constraint collision mask example to demo
This commit is contained in:
parent
c254c8d674
commit
440e9d28ee
1 changed files with 4 additions and 0 deletions
|
@ -1358,6 +1358,10 @@
|
|||
})
|
||||
);
|
||||
|
||||
// red category objects should not be draggable with the mouse
|
||||
|
||||
_mouseConstraint.collisionFilter.mask = defaultCategory | blueCategory | greenCategory;
|
||||
|
||||
var renderOptions = _engine.render.options;
|
||||
renderOptions.wireframes = false;
|
||||
renderOptions.background = '#222';
|
||||
|
|
Loading…
Reference in a new issue