CharacterMotorCS.CalculateJumpVerticalSpeed C# (CSharp) Method

CalculateJumpVerticalSpeed() private method

private CalculateJumpVerticalSpeed ( float targetJumpHeight ) : float
targetJumpHeight float
return float
    float CalculateJumpVerticalSpeed( float targetJumpHeight )
    {
        // From the jump height and gravity we deduce the upwards speed
        // for the character to reach at the apex.
        return Mathf.Sqrt (2 * targetJumpHeight * gravity);
    }