hello
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) ;
camera.add(CBox);
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.
thanks