public static double MoveTowardsAngle(double current, double target, double maxDelta) { target = current + Mathd.DeltaAngle(current, target); return(Mathd.MoveTowards(current, target, maxDelta)); }
public static float MoveTowardsAngle(float current, float target, float maxDelta) { target = current + Mathd.DeltaAngle(current, target); return(Mathd.MoveTowards(current, target, maxDelta)); }