Remove transform methods from mapgrid (#12233)
This commit is contained in:
@@ -387,10 +387,12 @@ public sealed partial class CargoSystem
|
||||
var center = new Vector2();
|
||||
var minRadius = 0f;
|
||||
Box2? aabb = null;
|
||||
var xformQuery = GetEntityQuery<TransformComponent>();
|
||||
|
||||
foreach (var grid in _mapManager.GetAllMapGrids(xform.MapID))
|
||||
{
|
||||
aabb = aabb?.Union(grid.WorldAABB) ?? grid.WorldAABB;
|
||||
var worldAABB = xformQuery.GetComponent(grid.GridEntityId).WorldMatrix.TransformBox(grid.LocalAABB);
|
||||
aabb = aabb?.Union(worldAABB) ?? worldAABB;
|
||||
}
|
||||
|
||||
if (aabb != null)
|
||||
|
||||
Reference in New Issue
Block a user