public static SteeringOutput GetSteering(KinematicState ownKS, SArrive arriveInfo, SObstacleAvoidance obstacleInfo, ref bool obstacleAvoided) { SteeringOutput obstacleAvoidSteering = ObstacleAvoidance.GetSteering(ownKS, obstacleInfo); if (obstacleAvoidSteering != NULL_STEERING) { obstacleAvoided = true; return(obstacleAvoidSteering); } obstacleAvoided = false; return(Arrive.GetSteering(ownKS, arriveInfo)); }
public void SetInfo(SArrive arrive, SObstacleAvoidance obstacleAvoidance) { m_arriveInfo = arrive; m_obstacleAvoidanceInfo = obstacleAvoidance; }