Changes required for component tree engine PR (#13109)

This commit is contained in:
Leon Friedrich
2022-12-27 15:34:22 +13:00
committed by GitHub
parent c02fbc3659
commit 7c7c7d3206
8 changed files with 5 additions and 15 deletions

View File

@@ -186,7 +186,8 @@ namespace Content.Shared.Examine
continue;
}
var bBox = o.BoundingBox.Translated(entMan.GetComponent<TransformComponent>(o.Owner).WorldPosition);
var bBox = o.BoundingBox;
bBox = bBox.Translated(entMan.GetComponent<TransformComponent>(o.Owner).WorldPosition);
if (bBox.Contains(origin.Position) || bBox.Contains(other.Position))
{