1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Adjust target angle calculation parameters

This commit is contained in:
Pasi4K5 2022-06-19 13:50:09 +02:00
parent c6ac60c0b5
commit 33c6c6af6b

View File

@ -207,7 +207,7 @@ namespace osu.Game.Rulesets.Osu.Utils
public static float GetRelativeTargetAngle(float targetDistance, float offset, bool flowDirection)
{
float angle = (float)(3.3 / (1 + 200 * Math.Pow(MathHelper.E, 0.016 * (targetDistance - 466))) + 0.45 + offset);
float angle = (float)(3 / (1 + 200 * Math.Pow(MathHelper.E, 0.016 * (targetDistance - 466))) + 0.45 + offset);
float relativeAngle = MathHelper.Pi - angle;
return flowDirection ? -relativeAngle : relativeAngle;
}