Helper, hittest for the closest plane.