Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

PlayerControl

Drives this entity's CharacterController from Move, Sprint and Jump, relative to its camera rig's yaw.

public struct PlayerControl : IComponent<PlayerControl>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Player

public ulong Player;

Input owner (PlayerId).

Default: 1.

WalkSpeed

public float WalkSpeed;

Walking speed.

Unit: m/s. Range: [0, ∞]. Default: 1.6.

RunSpeed

public float RunSpeed;

Sprinting speed.

Unit: m/s. Range: [0, ∞]. Default: 4.5.

JumpSpeed

public float JumpSpeed;

Jump launch speed.

Unit: m/s. Range: [0, ∞]. Default: 4.5.

TurnRate

public float TurnRate;

Maximum turn rate toward the movement direction.

Unit: deg/s. Range: [0, ∞]. Default: 540.

Yaw

public float Yaw;

Facing yaw; 0 faces +Z. Simulation state.

Unit: deg. Default: 0.

Camera

public string Camera;

Camera rig whose yaw orients Move; world axes when empty.

Default: null.

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.