Significantly improve NPC steering (#17931)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user