mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Remove SliderVelocityAt, compute it manually inside hit objects.
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user