private double CalculateSpeed(double intervalPos) { var value = ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 100, 1); if (value < 1) value = 1; return value; }
private int CalculateSpeed(double intervalPos) { var value = (int)Math.Round(ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 100, 1)); if (value < 1) value = 1; return value; }
private int CalculateSpeed(double intervalPos) { var value = (int)Math.Round(ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 100, 1) * FrameTime / 50d); if (value < 1) { value = 1; } return(value); }
private double CalculateSpeed(double intervalPos) { var value = ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 50, 1); if (value < 1) { value = 1; } return(value); }
private double CalculateSpeed(double intervalPos) { var value = ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 100, 1) * FrameTime / 50d; if (value < 1) { value = 1; } return(value); }
private double CalculateSpeed(double intervalPos) { return(ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 15, -15)); }
private double CalculateSpeed(double intervalPos) { return(ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 80, -80) * FrameTime / 50d); }