Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

NavAgent

Dimensions, speed and permitted areas of one navigation agent.

public struct NavAgent : IComponent<NavAgent>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Profile

public uint Profile;

Mesh profile ID; radius and height must fit that profile.

Default: 0.

Radius

public float Radius;

Collision radius in metres.

Unit: m. Range: [0.001, 10]. Default: 0.3.

Height

public float Height;

Required clearance in metres.

Unit: m. Range: [0.01, 100]. Default: 1.8.

MaxSpeed

public float MaxSpeed;

Maximum movement speed in metres per second.

Range: [0, 1000]. Default: 3.

Acceleration

public float Acceleration;

Maximum change in velocity per second.

Range: [0, 10000]. Default: 8.

AreaMask

public ushort AreaMask;

Areas this agent can use (one bit per area).

Default: 65535.

StoppingDistance

public float StoppingDistance;

Arrival tolerance in metres.

Unit: m. Range: [0.001, 10]. Default: 0.1.

Methods

Access

public static ref NavAgent Access(Entity entity, bool write);

No description yet.

Insert

public static void Insert(in Commands commands, Entity entity, in NavAgent value);

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.