Пример #1
0
 public float GetOptimalFrontDistance()
 {
     return(MinimumFrontDistance + (FrontDistancePerSpeed * Mathf.Pow(vehicle.GetCurrentSpeed(), 2)));
 }
Пример #2
0
 bool IsStopped()
 {
     return(vehicle.GetCurrentSpeed() < MinSpeedThreshold);
 }