mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Fix for group vs group within group collision (fixes #877)
This commit is contained in:
parent
52ea95d9ce
commit
5a3eeb8a9c
1 changed files with 6 additions and 1 deletions
|
@ -653,7 +653,12 @@ Phaser.Physics.Arcade.prototype = {
|
||||||
{
|
{
|
||||||
if (group1.children[i].exists)
|
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