searchNearestObjectInGivenDirection