Dodgeball.Game.Player.hitRumble C# (CSharp) Метод

hitRumble() публичный Метод

public hitRumble ( Ball ball ) : void
ball Ball
Результат void
        void hitRumble(Ball ball)
        {
            float relativeSpeed = ball.velocity.Length() / MaxFling;
              float seconds = MathHelper.Lerp(MIN_HIT_SECONDS, MAX_HIT_SECONDS, relativeSpeed);
              //TODO: FINISH THIS SHIT
              float big = MathHelper.Lerp(MIN_HIT_POWER, MAX_HIT_POWER, relativeSpeed);
              float little = MathHelper.Lerp(MIN_HIT_POWER, MAX_HIT_POWER, relativeSpeed);

              G.DoForSeconds(seconds,
            () => GamePad.SetVibration(playerIndex, big, little),
            () => GamePad.SetVibration(playerIndex, 0, 0));
        }