mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Groups arcade collisions
This commit is contained in:
parent
25aa3263ed
commit
b9e4d15efb
1 changed files with 2 additions and 0 deletions
|
@ -1304,6 +1304,8 @@ var World = new Class({
|
||||||
collideObjects: function (object1, object2, collideCallback, processCallback, callbackContext, overlapOnly)
|
collideObjects: function (object1, object2, collideCallback, processCallback, callbackContext, overlapOnly)
|
||||||
{
|
{
|
||||||
var i;
|
var i;
|
||||||
|
object1 = object1.hasOwnProperty('children') ? object1.children.entries : object1;
|
||||||
|
object2 = object2.hasOwnProperty('children') ? object2.children.entries : object2;
|
||||||
var object1isArray = Array.isArray(object1);
|
var object1isArray = Array.isArray(object1);
|
||||||
var object2isArray = Array.isArray(object2);
|
var object2isArray = Array.isArray(object2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue