Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

CharacterInput

Per-tick character intent: replay this input exactly once before the rigid-body step.

public struct CharacterInput : IComponent<CharacterInput>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

DesiredVelocity

public Vector3 DesiredVelocity;

Desired world-space horizontal velocity; Y must be zero.

Unit: m/s. Default: [0,0,0]. Replicated to the owning client.

JumpSpeed

public float JumpSpeed;

Jump launch speed; zero means no jump this tick.

Unit: m/s. Range: [0, ∞]. Default: 0. Replicated to the owning client.

Crouch

public bool Crouch;

Requested crouch; standing may be blocked by clearance.

Default: false. Replicated to the owning client.

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.