UnityEngine.Mathf.SmoothDampAngle C# (CSharp) Method

SmoothDampAngle() public static method

public static SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime ) : float
current float
target float
currentVelocity float
smoothTime float
return float
        public static float SmoothDampAngle(float current, float target, ref float currentVelocity, float smoothTime)
        {
            var deltaTime = Time.deltaTime;
            const float maxSpeed = float.PositiveInfinity;
            return SmoothDampAngle(current, target, ref currentVelocity, smoothTime, maxSpeed, deltaTime);
        }

Same methods

Mathf::SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed ) : float
Mathf::SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed, float deltaTime ) : float

Usage Example

コード例 #1
0
        public static float SmoothDampAngle(float current, float target, ref float currentVelocity, float smoothTime, float maxSpeed)
        {
            float deltaTime = Time.deltaTime;

            return(Mathf.SmoothDampAngle(current, target, ref currentVelocity, smoothTime, maxSpeed, deltaTime));
        }