Try fix click sorting & other misc changes. (#15686)

This commit is contained in:
Leon Friedrich
2023-04-23 19:44:27 +12:00
committed by GitHub
parent a4297aef1a
commit 3116621501
4 changed files with 5 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ namespace Content.Client.Clickable
renderOrder = sprite.RenderOrder;
var (spritePos, spriteRot) = transform.GetWorldPositionRotation(xformQuery);
var spriteBB = sprite.CalculateRotatedBoundingBox(spritePos, spriteRot, eye.Rotation);
bottom = spriteBB.CalcBoundingBox().Bottom;
bottom = Matrix3.CreateRotation(eye.Rotation).TransformBox(spriteBB).Bottom;
var invSpriteMatrix = Matrix3.Invert(sprite.GetLocalMatrix());