|
@@ -268,9 +268,9 @@ class Box3 {
|
|
|
intersectsBox( box ) {
|
|
|
|
|
|
// using 6 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 ||
|
|
|
- box.max.z < this.min.z || box.min.z > this.max.z ? false : true;
|
|
|
+ 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 &&
|
|
|
+ box.max.z >= this.min.z && box.min.z <= this.max.z;
|
|
|
|
|
|
}
|
|
|
|