// if the collision is farther than where the camera would
// have been positioned or outside of range, we can stop and
// leave the camera as is
if (details.getDistance() >= MAX_DISTANCE ||
details.getDistance() >= target.distance(translation))
{
break;
}
// if we made it here, the collision is within range. Move