Example #1
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));
 }
Example #2
0
 public static double MoveTowardsAngle(double current, double target, double maxDelta)
 {
     target = current + MathD.DeltaAngle(current, target);
     return(MathD.MoveTowards(current, target, maxDelta));
 }