V
V
Vitaliy Semyanchuk2017-12-01 13:24:56
JavaScript
Vitaliy Semyanchuk, 2017-12-01 13:24:56

Why doesn't intersectsBox work correctly in threejs?

Hello everyone, there is a problem with the intersectsBox method. I use it to find the outer sides of the building, if they do not intersect with the floor in the building itself, then the wall of the outer picture is attached. From the picture you can see that they do not overlap, but the method gives the opposite.

let areaObj = new Three.Box3().setFromObject(val);
let wallChildren = new Three.Box3().setFromObject(wall);
if(areaObj.intersectsBox(wallChildren)

5a212dec1ab53557107986.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question