Answer the question
In order to leave comments, you need to log in
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)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question