Esempio n. 1
0
 public static double SmoothDamp(double current, double target, ref double currentVelocity, double smoothTime)
 {
     return(MathD.SmoothDamp(current, target, ref currentVelocity, smoothTime, double.PositiveInfinity, Time.deltaTime));
 }
Esempio n. 2
0
 public static double SmoothDampAngle(double current, double target, ref double currentVelocity, double smoothTime, double maxSpeed, double deltaTime)
 {
     return(MathD.SmoothDamp(current, current + MathD.DeltaAngle(current, target), ref currentVelocity, smoothTime, maxSpeed, deltaTime));
 }
Esempio n. 3
0
 public static double SmoothDamp(double current, double target, ref double currentVelocity, double smoothTime, double maxSpeed)
 {
     return(MathD.SmoothDamp(current, target, ref currentVelocity, smoothTime, maxSpeed, Time.deltaTime));
 }