Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

Perceiver

An AI's senses: a sight cone with peripheral vision, hearing and memory.

public struct Perceiver : IComponent<Perceiver>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

SightRange

public float SightRange;

Sight range in metres inside the cone.

Unit: m. Range: [0, 10000]. Default: 25.

Fov

public float Fov;

Full field of view in degrees.

Unit: deg. Range: [0, 360]. Default: 120.

PeripheralRange

public float PeripheralRange;

Range in metres outside the cone (peripheral awareness); 0 disables.

Unit: m. Range: [0, 1000]. Default: 2.

EyeHeight

public float EyeHeight;

Eye height above the feet in metres.

Unit: m. Range: [0, 100]. Default: 1.7.

Hearing

public float Hearing;

Hearing multiplier applied to every noise radius.

Range: [0, 100]. Default: 1.

Occlusion

public float Occlusion;

Noise radius multiplier when the sound path is occluded.

Range: [0, 1]. Default: 0.5.

Memory

public float Memory;

Seconds a memory survives after the last stimulus.

Unit: s. Range: [0, 3600]. Default: 8.

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.