Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement OsuModDepth #25653

Merged
merged 12 commits into from
Dec 25, 2023
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Osu/Mods/OsuModDepth.cs
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@ private void processHitObject(double time, DrawableOsuHitObject drawable)
float z = MaxDepth.Value - (float)((Math.Max(time, appearTime) - appearTime) * speed);

float scale = scaleForDepth(z);
drawable.Position = toPlayfieldPosition(scale, hitObject.Position);
drawable.Position = toPlayfieldPosition(scale, hitObject.StackedPosition);
drawable.Scale = new Vector2(scale);
}

@@ -146,7 +146,7 @@ private void processSlider(double time, DrawableSlider drawableSlider)
}

float scale = scaleForDepth(z);
drawableSlider.Position = toPlayfieldPosition(scale, hitObject.Position);
drawableSlider.Position = toPlayfieldPosition(scale, hitObject.StackedPosition);
drawableSlider.Scale = new Vector2(scale);
}