Beispiel #1
0
		private double CalculateSpeed(double intervalPos)
		{
			var value = ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 100, 1);
			if (value < 1) value = 1;

			return value;
		}
Beispiel #2
0
		private int CalculateSpeed(double intervalPos)
		{
			var value = (int)Math.Round(ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 100, 1));
			if (value < 1) value = 1;

			return value;
		}
Beispiel #3
0
        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);
        }
Beispiel #4
0
        private double CalculateSpeed(double intervalPos)
        {
            var value = ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 50, 1);

            if (value < 1)
            {
                value = 1;
            }

            return(value);
        }
Beispiel #5
0
        private double CalculateSpeed(double intervalPos)
        {
            var value = ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 100, 1) * FrameTime / 50d;

            if (value < 1)
            {
                value = 1;
            }

            return(value);
        }
Beispiel #6
0
 private double CalculateSpeed(double intervalPos)
 {
     return(ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 15, -15));
 }
Beispiel #7
0
 private double CalculateSpeed(double intervalPos)
 {
     return(ScaleCurveToValue(SpeedCurve.GetValue(intervalPos), 80, -80) * FrameTime / 50d);
 }