Remove SliderVelocityAt, compute it manually inside hit objects.

This commit is contained in:
smoogipooo
2017-04-03 14:10:20 +09:00
parent ffe4d0ae4a
commit 74bd427997
4 changed files with 20 additions and 24 deletions

View File

@ -76,21 +76,5 @@ namespace osu.Game.Beatmaps.Timing
return timingPoint ?? ControlPoint.Default;
}
/// <summary>
/// Finds the slider velocity at a time.
/// </summary>
/// <param name="time">The time to find the slider velocity at.</param>
/// <returns>The slider velocity in milliseconds.</returns>
public double SliderVelocityAt(double time)
{
const double base_scoring_distance = 100;
double beatDistance = BeatDistanceAt(time);
if (beatDistance > 0)
return base_scoring_distance / beatDistance * 1000;
return base_scoring_distance;
}
}
}