Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

CharacterController

Predicted capsule movement: slopes, stairs, moving platforms, crouching and pushing.

public struct CharacterController : IComponent<CharacterController>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Radius

public float Radius;

Standing capsule radius.

Unit: m. Range: [0.001, ∞]. Default: 0.3.

Height

public float Height;

Complete standing height; must exceed twice the radius.

Unit: m. Range: [0.001, ∞]. Default: 1.8.

CrouchHeight

public float CrouchHeight;

Complete crouched height, between diameter and standing height.

Unit: m. Range: [0.001, ∞]. Default: 1.0.

MaxSlopeDeg

public float MaxSlopeDeg;

Maximum walkable slope angle.

Unit: deg. Range: [0.1, 89.9]. Default: 45.

StepHeight

public float StepHeight;

Maximum stair step height.

Unit: m. Range: [0, ∞]. Default: 0.35.

StickDown

public float StickDown;

Distance searched below feet to stay on a descending surface.

Unit: m. Range: [0, ∞]. Default: 0.5.

Padding

public float Padding;

Capsule collision padding.

Unit: m. Range: [0, ∞]. Default: 0.02.

MaxStrength

public float MaxStrength;

Maximum force used to push rigid bodies.

Unit: N. Range: [0, ∞]. Default: 1000.

Mass

public float Mass;

Character mass used for dynamic body interaction.

Unit: kg. Range: [0.001, ∞]. Default: 70.

Layer

public uint Layer;

Collision group used for movement queries.

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

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.