From b9e4d15efb607229c94bf9eda89fa3879ef8c11f Mon Sep 17 00:00:00 2001 From: Niklas Berg Date: Fri, 23 Feb 2018 23:49:12 +0100 Subject: [PATCH] Groups arcade collisions --- src/physics/arcade/World.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/physics/arcade/World.js b/src/physics/arcade/World.js index 05dc112ad..b5971349a 100644 --- a/src/physics/arcade/World.js +++ b/src/physics/arcade/World.js @@ -1304,6 +1304,8 @@ var World = new Class({ collideObjects: function (object1, object2, collideCallback, processCallback, callbackContext, overlapOnly) { var i; + object1 = object1.hasOwnProperty('children') ? object1.children.entries : object1; + object2 = object2.hasOwnProperty('children') ? object2.children.entries : object2; var object1isArray = Array.isArray(object1); var object2isArray = Array.isArray(object2);