Skip to content

Commit

Permalink
Remove odd angle in angle calculations
Browse files Browse the repository at this point in the history
I don't see how it's required if it gets offset.

The only consequence I can see happening from this commit is that all notes will move to a slightly different point on the circle.
  • Loading branch information
LumpBloom7 committed Apr 6, 2020
1 parent 6f710d3 commit 0ef24c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.tau/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class Extensions
public static float GetDegreesFromPosition(this Vector2 target, Vector2 self)
{
Vector2 offset = self - target;
float degrees = (float)MathHelper.RadiansToDegrees(Math.Atan2(-offset.X, offset.Y)) + 24.3f;
float degrees = (float)MathHelper.RadiansToDegrees(Math.Atan2(-offset.X, offset.Y));

return degrees;
}
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.tau/UI/Cursor/tauCursor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public GameplayCursor(float cs)

protected override bool OnMouseMove(MouseMoveEvent e)
{
var angle = e.MousePosition.GetDegreesFromPosition(AnchorPosition) - 25;
var angle = e.MousePosition.GetDegreesFromPosition(AnchorPosition);

Rotation = angle;

Expand Down

0 comments on commit 0ef24c0

Please sign in to comment.