Significantly improve NPC steering (#17931)

This commit is contained in:
metalgearsloth
2023-07-14 00:48:04 +10:00
committed by GitHub
parent 72f4560483
commit c43db830ea
7 changed files with 62 additions and 37 deletions

View File

@@ -146,7 +146,7 @@ public sealed class MoveToOperator : HTNOperator
_steering.PrunePath(uid, mapCoords, targetCoordinates.ToMapPos(_entManager, _transform) - mapCoords.Position, result.Path);
}
comp.CurrentPath = result.Path;
comp.CurrentPath = new Queue<PathPoly>(result.Path);
}
}