pickNearestOrFirst

Picks the SteeringActionWithTarget whose target is nearest to the pedestrian's current position, or the first action of the list if none of them has a defined target. If the list is empty, null is returned.