1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 13:32:54 +08:00

Correct comments

This commit is contained in:
Pasi4K5 2022-09-19 00:45:23 +02:00
parent 4263933c9e
commit 9eb0a21d75

View File

@ -120,13 +120,14 @@ namespace osu.Game.Rulesets.Osu.Mods
/// <param name="flowDirection">Whether the relative angle should be positive or negative.</param>
private float getRelativeTargetAngle(float targetDistance, float offset, bool flowDirection)
{
// Range 0..1
// Range [0.1;1]
float angleSharpness = AngleSharpness.Value / AngleSharpness.MaxValue;
// Range [0;0.9]
float angleWideness = 1 - angleSharpness;
// Range: -70..30
// Range: [-60;30]
float customOffsetX = angleSharpness * 100 - 70;
// Range: -0.075..0.175
// Range: [-0.075;0.15]
float customOffsetY = angleWideness * 0.25f - 0.075f;
targetDistance += customOffsetX;