DeltaAngle() public static method

public static DeltaAngle ( float current, float target ) : float
current float
target float
return float
コード例 #1
0
 public static float MoveTowardsAngle(float current, float target, float maxDelta)
 {
     target = current + Mathf.DeltaAngle(current, target);
     return(Mathf.MoveTowards(current, target, maxDelta));
 }
コード例 #2
0
ファイル: Mathf.cs プロジェクト: lsx6244413/UnityDecomplie
 public static float SmoothDampAngle(float current, float target, ref float currentVelocity, float smoothTime, [DefaultValue("Mathf.Infinity")] float maxSpeed, [DefaultValue("Time.deltaTime")] float deltaTime)
 {
     target = current + Mathf.DeltaAngle(current, target);
     return(Mathf.SmoothDamp(current, target, ref currentVelocity, smoothTime, maxSpeed, deltaTime));
 }
コード例 #3
0
 public static float SmoothDampAngle(float current, float target, ref float currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
 {
     target = current + Mathf.DeltaAngle(current, target);
     return(Mathf.SmoothDamp(current, target, ref currentVelocity, smoothTime, maxSpeed, deltaTime));
 }