diff --git a/src/math/Box2.js b/src/math/Box2.js index f9578ee8e4b95978277a29aa98e1eb7463cf2f9b..e49193e4d0a8ce6888d38022074134d2c0f9a501 100644 --- a/src/math/Box2.js +++ b/src/math/Box2.js @@ -155,7 +155,8 @@ Object.assign( Box2.prototype, { intersectsBox: function ( box ) { - // using 6 splitting planes to rule out intersections. + // using 4 splitting planes to rule out intersections + return box.max.x < this.min.x || box.min.x > this.max.x || box.max.y < this.min.y || box.min.y > this.max.y ? false : true;