Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

NavAgentType

A named agent type: its own baked mesh (dimensions) and traversal costs. Agents select it through NavAgent.profile == profile.

public struct NavAgentType : IComponent<NavAgentType>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Profile

public uint Profile;

Mesh profile ID shared by the type's agents and its bake.

Default: 0.

Name

public string Name;

Inspector name (Humanoid, Brute, Drone).

Default: "".

Radius

public float Radius;

Bake radius in metres.

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

Height

public float Height;

Bake clearance height in metres.

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

Climb

public float Climb;

Maximum step height in metres.

Unit: m. Range: [0, 10]. Default: 0.4.

Slope

public float Slope;

Steepest walkable slope in degrees.

Unit: deg. Range: [0, 89]. Default: 45.

AreaCosts

public float[] AreaCosts;

Cost multiplier per area ID (index 0..15); missing entries are 1.

Default: [].

AreaMask

public ushort AreaMask;

Areas this type may enter (one bit per area).

Default: 65535.

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.