1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Rename origin to center for clarity

This commit is contained in:
aitani9 2021-07-22 14:01:31 -07:00
parent 283d953c4f
commit e6b28e1386

View File

@ -146,11 +146,11 @@ namespace osu.Game.Rulesets.Osu.Mods
if (barrelRollActive)
{
float origin = restrictTo.ToSpaceOfOtherDrawable(restrictTo.OriginPosition, Parent).X;
float center = restrictTo.ToSpaceOfOtherDrawable(restrictTo.OriginPosition, Parent).X;
float halfDiagonal = MathF.Sqrt(MathF.Pow(restrictTo.DrawWidth / 2, 2) + MathF.Pow(restrictTo.DrawHeight / 2, 2));
start = origin - halfDiagonal;
end = origin + halfDiagonal;
start = center - halfDiagonal;
end = center + halfDiagonal;
}
else
{