From 440e9d28ee21469befa1dd4a3e6bad66188c5830 Mon Sep 17 00:00:00 2001 From: liabru Date: Thu, 27 Nov 2014 23:23:19 +0000 Subject: [PATCH] added mouse constraint collision mask example to demo --- demo/js/Demo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demo/js/Demo.js b/demo/js/Demo.js index e837b0a..bb212ec 100644 --- a/demo/js/Demo.js +++ b/demo/js/Demo.js @@ -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';