Fix thindow pathing (#15349)
This commit is contained in:
@@ -472,7 +472,8 @@ public sealed partial class PathfindingSystem
|
||||
if (!fixturesQuery.TryGetComponent(ent, out var fixtures))
|
||||
continue;
|
||||
|
||||
// TODO: Inefficient af
|
||||
var colliding = false;
|
||||
|
||||
foreach (var fixture in fixtures.Fixtures.Values)
|
||||
{
|
||||
// Don't need to re-do it.
|
||||
@@ -505,8 +506,13 @@ public sealed partial class PathfindingSystem
|
||||
|
||||
collisionLayer |= fixture.CollisionLayer;
|
||||
collisionMask |= fixture.CollisionMask;
|
||||
colliding = true;
|
||||
}
|
||||
|
||||
// If entity doesn't intersect this node (e.g. thindows) then ignore it.
|
||||
if (!colliding)
|
||||
continue;
|
||||
|
||||
if (accessQuery.HasComponent(ent))
|
||||
{
|
||||
flags |= PathfindingBreadcrumbFlag.Access;
|
||||
|
||||
Reference in New Issue
Block a user