Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

AudioListener

Presentation listener, usually copied from the local player's camera component.

public struct AudioListener : IComponent<AudioListener>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Position

public Vector3 Position;

Listener world position.

Unit: m. Default: [0,0,0].

Velocity

public Vector3 Velocity;

Listener world velocity in meters per second.

Default: [0,0,0].

Forward

public Vector3 Forward;

Forward direction; the default engine basis looks down negative Z.

Default: [0,0,-1].

Up

public Vector3 Up;

Up direction; must not be parallel to forward.

Default: [0,1,0].

ConeInner

public float ConeInner;

Listener sensitivity cone inner full angle.

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

ConeOuter

public float ConeOuter;

Listener sensitivity cone outer full angle.

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

ConeOuterGain

public float ConeOuterGain;

Linear sensitivity outside the listener cone.

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

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.