This commit is contained in:
metalgearsloth
2022-12-26 11:12:16 +11:00
committed by GitHub
parent 6da47b4fcb
commit a2ab759583

View File

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