I have a Object3D using the Box geometry. I’m using the Raycaster’s intersectObjects() function to get the Object3D I am clicking on. How would I get the world position of the face I am clicking on? I assume the face would also have a quaternion in order for me to rotate my camera to match that face? My goal is basically to click a face and position my camera in front (ie: with a gap in between) of that face.
The raycaster returns a “hit” object that has a .point that is the hit point, and a normal that is a vector pointing out from that face.
So for your camera scenario it might look something like…
camera.position.copy( hit.normal ).multiplyScalar( 2. ).add( hit.point );
camera.lookAt( hit.point );
2 Likes