Skip to content

Commit

Permalink
Collide group vs self as array
Browse files Browse the repository at this point in the history
  • Loading branch information
samme committed Jun 29, 2021
1 parent 8373e6f commit abfb8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physics/arcade/World.js
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,7 @@ var World = new Class({
var i;
var j;

if (object1.isParent && object1.physicsType === undefined)
if (object1.isParent && (object1.physicsType === undefined || object2 === undefined || object1 === object2))
{
object1 = object1.children.entries;
}
Expand Down

0 comments on commit abfb8c6

Please sign in to comment.