Skip to content

Commit b87d71a

Browse files
committed
single out groups without physics
1 parent a50eaae commit b87d71a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/physics/arcade/World.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,8 @@ var World = new Class({
13041304
collideObjects: function (object1, object2, collideCallback, processCallback, callbackContext, overlapOnly)
13051305
{
13061306
var i;
1307-
object1 = object1.hasOwnProperty('children') ? object1.children.entries : object1;
1308-
object2 = object2.hasOwnProperty('children') ? object2.children.entries : object2;
1307+
object1 = object1.isParent && typeof(object1.physicsType) === 'undefined' ? object1.children.entries : object1;
1308+
object2 = object2.isParent && typeof(object2.physicsType) === 'undefined' ? object2.children.entries : object2;
13091309
var object1isArray = Array.isArray(object1);
13101310
var object2isArray = Array.isArray(object2);
13111311

0 commit comments

Comments
 (0)