intersectsBox giving true


I am trying to check if camera bonding box is touching another box in this way:

///box function
 C  = getWall(5,160,Plain.geometry.parameters.height + 40) ;

//camera bounding box
CBox = getWall(0.1,0.1,0.1) ; 
CBox.visible = false ;

Ca = new THREE.Box3().setFromObject(CBox);
Cb = new THREE.Box3().setFromObject( C );

if(Cb.intersectsBox (Ca)){console.log('touch');}

but its always giving a “touch” in console.log even if there far apart.


Please demonstrate this with a live example. I’m afraid it’s not possible to see what’s going wrong from the code you have provided so far.