Context steering for NPCs (#12915)
This commit is contained in:
16
Content.Shared/NPC/SharedNPCSteeringSystem.cs
Normal file
16
Content.Shared/NPC/SharedNPCSteeringSystem.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Content.Shared.NPC;
|
||||
|
||||
public abstract class SharedNPCSteeringSystem : EntitySystem
|
||||
{
|
||||
public const byte InterestDirections = 12;
|
||||
|
||||
/// <summary>
|
||||
/// How many radians between each interest direction.
|
||||
/// </summary>
|
||||
public const float InterestRadians = MathF.Tau / InterestDirections;
|
||||
|
||||
/// <summary>
|
||||
/// How many degrees between each interest direction.
|
||||
/// </summary>
|
||||
public const float InterestDegrees = 360f / InterestDirections;
|
||||
}
|
||||
Reference in New Issue
Block a user