Exemple #1
0
 private void checkBrake()
 {
     if (pid_runner.isRunning)
     {
         return;
     }
     StartCoroutine(pid_runner.run());
 }
Exemple #2
0
 private void checkWheel()
 {
     if (Mathf.Abs(getCurrentSlip()) < 0.05f)
     {
         reset();
         return;
     }
     if (pid_runner.isRunning)
     {
         return;
     }
     StartCoroutine(pid_runner.run());
 }
Exemple #3
0
        private void checkWheel()
        {
            if (Mathf.Abs(carControl.getSpeedFactor()) < 0.05f)
            {
                reset();
                return;
            }

            if (pid_runner.isRunning)
            {
                return;
            }
            StartCoroutine(pid_runner.run());
        }