Skip to content

Commit 8ea1d40

Browse files
committed
Fix #7034. Adding collisionMask and collisionCategory checks to Phaser.Physics.Arcade.World#separate
1 parent 5c676b8 commit 8ea1d40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/physics/arcade/World.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,9 @@ var World = new Class({
13891389
!body2.enable ||
13901390
body1.checkCollision.none ||
13911391
body2.checkCollision.none ||
1392-
!this.intersects(body1, body2))
1392+
!this.intersects(body1, body2) ||
1393+
(body1.collisionMask & body2.collisionCategory) === 0 ||
1394+
(body2.collisionMask & body1.collisionCategory) === 0)
13931395
{
13941396
return result;
13951397
}

0 commit comments

Comments
 (0)