예제 #1
0
파일: Mathd.cs 프로젝트: fishykins/DW-ECS
 public static double SmoothDampAngle(double current, double target, ref double currentVelocity, double smoothTime, double maxSpeed, double deltaTime)
 {
     target = current + Mathd.DeltaAngle(current, target);
     return(Mathd.SmoothDamp(current, target, ref currentVelocity, smoothTime, maxSpeed, deltaTime));
 }
예제 #2
0
파일: Mathd.cs 프로젝트: fishykins/DW-ECS
 public static double MoveTowardsAngle(double current, double target, double maxDelta)
 {
     target = current + Mathd.DeltaAngle(current, target);
     return(Mathd.MoveTowards(current, target, maxDelta));
 }