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:
parent
c6ac60c0b5
commit
33c6c6af6b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user