Rename `origin` to `center` for clarity

This commit is contained in:
aitani9 2021-07-22 14:01:31 -07:00
parent 283d953c4f
commit e6b28e1386
1 changed files with 3 additions and 3 deletions

View File

@ -146,11 +146,11 @@ protected override void Update()
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
{