Пример #1
0
 private void ApplyWeighting()
 {
     _steering = (CoM * FM.CoMWeight) + (CoR * FM.CoRWeight) - (AvoidFish * FM.AvoidFishWeight) - (Tank * FM.TankAvoidWeight) - (Shark * FM.SharkAvoidWeight);
     if (_steering == Vector3.zero)
     {
         _steering = FM.GetWand(transform.forward);
     }
 }