Replace obsolete functions in NPC systems (#31448)
This commit is contained in:
@@ -207,7 +207,7 @@ public sealed partial class NPCSteeringSystem
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var ent in grid.GetLocalAnchoredEntities(poly.Box))
|
||||
foreach (var ent in _mapSystem.GetLocalAnchoredEntities(poly.GraphUid, grid, poly.Box))
|
||||
{
|
||||
if (!_physicsQuery.TryGetComponent(ent, out var body) ||
|
||||
!body.Hard ||
|
||||
|
||||
Reference in New Issue
Block a user