Merge pull request #1147 from pyromanfo/dev

Fix for group vs group within group collision (fixes #877)
This commit is contained in:
Richard Davey 2014-08-29 01:27:01 +01:00
commit 32989094f4

View file

@ -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);
}
}
}