mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 06:42:25 +02:00
Re-implement DynamicTree<T> on top of B2DynamicTree<T>.
This commit is contained in:
@@ -31,17 +31,16 @@ namespace Robust.Client.GameObjects.EntitySystems
|
||||
|
||||
var mapTree = renderTreeSystem.GetSpriteTreeForMap(currentMap);
|
||||
|
||||
var pvsEntities = mapTree.Query(pvsBounds, true);
|
||||
|
||||
foreach (var sprite in pvsEntities)
|
||||
mapTree.QueryAabb(ref frameTime, (ref float state, in SpriteComponent value) =>
|
||||
{
|
||||
if (sprite.IsInert)
|
||||
if (value.IsInert)
|
||||
{
|
||||
continue;
|
||||
return true;
|
||||
}
|
||||
|
||||
sprite.FrameUpdate(frameTime);
|
||||
}
|
||||
value.FrameUpdate(state);
|
||||
return true;
|
||||
}, pvsBounds, approx: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user