mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 23:24:41 +00:00
Merge pull request #1147 from pyromanfo/dev
Fix for group vs group within group collision (fixes #877)
This commit is contained in:
commit
32989094f4
1 changed files with 6 additions and 1 deletions
|
@ -653,7 +653,12 @@ Phaser.Physics.Arcade.prototype = {
|
|||
{
|
||||
if (group1.children[i].exists)
|
||||
{
|
||||
this.collideSpriteVsGroup(group1.children[i], group2, collideCallback, processCallback, callbackContext, overlapOnly);
|
||||
if (group1.children[i].type == Phaser.GROUP)
|
||||
{
|
||||
this.collideGroupVsGroup(group1.children[i], group2, collideCallback, processCallback, callbackContext, overlapOnly);
|
||||
} else {
|
||||
this.collideSpriteVsGroup(group1.children[i], group2, collideCallback, processCallback, callbackContext, overlapOnly);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue