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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user