Body has new property: ignorePointer, which pointer checks.

This commit is contained in:
Richard Davey 2017-11-23 14:59:26 +00:00
parent 04df05cf73
commit 7c29eab78c
2 changed files with 2 additions and 1 deletions

View file

@ -128,7 +128,7 @@ var PointerConstraint = new Class({
{
var body = bodies[i];
if (Bounds.contains(body.bounds, position) &&
if (!body.ignorePointer && Bounds.contains(body.bounds, position) &&
Detector.canCollide(body.collisionFilter, constraint.collisionFilter))
{
if (this.getBodyPart(body, position))

View file

@ -59,6 +59,7 @@ var Axes = require('../geometry/Axes');
isStatic: false,
isSleeping: false,
ignoreGravity: false,
ignorePointer: false,
motion: 0,
sleepThreshold: 60,
density: 0.001,