UnityEngine.Mathf.SmoothDampAngle C# (CSharp) Method

SmoothDampAngle() public static method

public static SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed, float deltaTime ) : float
current float
target float
currentVelocity float
smoothTime float
maxSpeed float
deltaTime float
return float
        public static float SmoothDampAngle(float current, float target, ref float currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
        {
            target = current + DeltaAngle(current, target);
            return SmoothDamp(current, target, ref currentVelocity, smoothTime, maxSpeed, deltaTime);
        }

Same methods

Mathf::SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime ) : float
Mathf::SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed ) : 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));
        }