Struct · Ara
Wanderer
Server-side AI: walks the navmesh to random points inside a box, pausing between.
public struct Wanderer : IComponent<Wanderer>Properties
TypeIndex
public static uint TypeIndex { get; }Stable engine component index.
Fields
Min
public Vector3 Min;Minimum corner of the roaming box (world space).
Unit: m. Default: [0,0,0].
Max
public Vector3 Max;Maximum corner of the roaming box (world space).
Unit: m. Default: [0,0,0].
PauseTicks
public uint PauseTicks;Ticks to wait after arriving before choosing the next goal.
Default: 45.
ResumeTick
public ulong ResumeTick;Tick at which the next goal is chosen. Simulation state.
Default: 0.
Goals
public uint Goals;Goals chosen so far. Simulation state.
Default: 0.
Methods
Access
public static ref Wanderer Access(Entity entity, bool write);No description yet.
Insert
public static void Insert(in Commands commands, Entity entity, in Wanderer value);No description yet.
Contains
public static bool Contains(Entity entity);No description yet.