0
0
Fork 0
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:
liabru 2014-11-27 23:23:19 +00:00
parent c254c8d674
commit 440e9d28ee

View file

@ -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';