Exit early for checkCollision.none on bodyB

This commit is contained in:
samme 2020-03-04 12:47:58 -08:00
parent 3c2fac2101
commit 68db7d086e

View file

@ -1948,9 +1948,9 @@ var World = new Class({
{
bodyB = results[i];
if (bodyA === bodyB || !bodyB.enable || !group.contains(bodyB.gameObject))
if (bodyA === bodyB || !bodyB.enable || bodyB.checkCollision.none || !group.contains(bodyB.gameObject))
{
// Skip if comparing against itself, or if bodyB isn't actually part of the Group
// Skip if comparing against itself, or if bodyB isn't collidable, or if bodyB isn't actually part of the Group
continue;
}