raycaster now checks boundingbox intersection before proceeding