From 18e1a5f2d36802d1061b1b3e5e5c09fd7addbbbe Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Mon, 13 Mar 2017 16:47:39 +0100 Subject: [PATCH] Box2: Correct comment --- src/math/Box2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/math/Box2.js b/src/math/Box2.js index f9578ee8e4..e49193e4d0 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; -- GitLab