More NPC steering tweaks (#14119)

This commit is contained in:
metalgearsloth
2023-02-15 16:54:06 +11:00
committed by GitHub
parent 781ec8e9eb
commit 99dfe5694a
5 changed files with 49 additions and 12 deletions

View File

@@ -36,6 +36,15 @@ public sealed class NPCSteeringComponent : Component
#endregion
/// <summary>
/// Next time we can change our steering direction.
/// </summary>
public TimeSpan NextSteer = TimeSpan.Zero;
public Vector2 LastSteerDirection = Vector2.Zero;
public const int SteeringFrequency = 10;
/// <summary>
/// Have we currently requested a path.
/// </summary>