Skip to content

Commit

Permalink
added mouse constraint collision mask example to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Nov 27, 2014
1 parent c254c8d commit 440e9d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/js/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 440e9d2

Please sign in to comment.