Create Slider.StackedPositionAt method

This commit is contained in:
Thomas Tan
2018-01-29 16:22:14 +08:00
parent f66ecae3ff
commit c36859ea3a
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ namespace osu.Game.Rulesets.Osu.Objects
public double EndTime => StartTime + this.SpanCount() * Curve.Distance / Velocity;
public double Duration => EndTime - StartTime;
public Vector2 StackedPositionAt(double t) => this.PositionAt(t) + this.StackOffset;
public override Vector2 EndPosition => this.PositionAt(1);
public SliderCurve Curve { get; } = new SliderCurve();