Struct · Ara
NavObstacle
Dynamic obstacle: an axis-aligned box centred on the entity's NavPosition. Carve/Area changes publish after NavConfig::rebake_latency_ticks; until then (and always for Avoid) agents avoid it locally.
public struct NavObstacle : IComponent<NavObstacle>Properties
TypeIndex
public static uint TypeIndex { get; }Stable engine component index.
Fields
Id
public uint Id;Stable nonzero ID; changes are canonically ordered by it.
Default: 0.
HalfExtents
public Vector3 HalfExtents;Box half extents in metres.
Unit: m. Default: [0.5,0.5,0.5].
Mode
public ObstacleMode Mode;Carve, relabel or avoid only.
Default: "carve".
Area
public byte Area;Area applied in Area mode, from 0 through 15.
Range: [0, 15]. Default: 0.
Methods
Access
public static ref NavObstacle Access(Entity entity, bool write);No description yet.
Insert
public static void Insert(in Commands commands, Entity entity, in NavObstacle value);No description yet.
Contains
public static bool Contains(Entity entity);No description yet.