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

@@ -45,6 +45,9 @@ public sealed class NPCSteeringComponent : Component
[DataField("nextSteer", customTypeSerializer:typeof(TimeOffsetSerializer))]
public TimeSpan NextSteer = TimeSpan.Zero;
[DataField("lastSteerIndex")]
public int LastSteerIndex = -1;
[DataField("lastSteerDirection")]
public Vector2 LastSteerDirection = Vector2.Zero;