mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Exit early for checkCollision.none on bodyB
This commit is contained in:
parent
3c2fac2101
commit
68db7d086e
1 changed files with 2 additions and 2 deletions
|
@ -1948,9 +1948,9 @@ var World = new Class({
|
|||
{
|
||||
bodyB = results[i];
|
||||
|
||||
if (bodyA === bodyB || !bodyB.enable || !group.contains(bodyB.gameObject))
|
||||
if (bodyA === bodyB || !bodyB.enable || bodyB.checkCollision.none || !group.contains(bodyB.gameObject))
|
||||
{
|
||||
// Skip if comparing against itself, or if bodyB isn't actually part of the Group
|
||||
// Skip if comparing against itself, or if bodyB isn't collidable, or if bodyB isn't actually part of the Group
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue