mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Body has new property: ignorePointer, which pointer checks.
This commit is contained in:
parent
04df05cf73
commit
7c29eab78c
2 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
|
@ -59,6 +59,7 @@ var Axes = require('../geometry/Axes');
|
|||
isStatic: false,
|
||||
isSleeping: false,
|
||||
ignoreGravity: false,
|
||||
ignorePointer: false,
|
||||
motion: 0,
|
||||
sleepThreshold: 60,
|
||||
density: 0.001,
|
||||
|
|
Loading…
Reference in a new issue