NPC steering tweaks (#26351)

- Fix the free node check considering the whole tile and not the poly.
- Clear maps on direction resets.
- More robust arrival checks for pathfinding nodes.
This commit is contained in:
metalgearsloth
2024-03-23 12:42:51 +11:00
committed by GitHub
parent 763d2bca9c
commit 64b648ff3c
2 changed files with 26 additions and 24 deletions

View File

@@ -274,6 +274,8 @@ public sealed partial class NPCSteeringSystem : SharedNPCSteeringSystem
if (clear && value.Equals(Vector2.Zero))
{
steering.CurrentPath.Clear();
Array.Clear(steering.Interest);
Array.Clear(steering.Danger);
}
component.CurTickSprintMovement = value;