DW_ThirdPersonController.CalculateJumpVerticalSpeed C# (CSharp) Method

CalculateJumpVerticalSpeed() private method

private CalculateJumpVerticalSpeed ( float targetJumpHeight ) : float
targetJumpHeight float
return float
    private 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(2f * targetJumpHeight * Gravity);
    }