Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

Vehicle

Four-wheel engine/automatic-gearbox vehicle, using S6's stable defaults.

public struct Vehicle : IComponent<Vehicle>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

HalfExtents

public Vector3 HalfExtents;

Chassis half extents.

Unit: m. Range: [0.001, ∞]. Default: [0.9,0.2,2].

Mass

public float Mass;

Chassis mass.

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

WheelRadius

public float WheelRadius;

All four wheel radii.

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

WheelWidth

public float WheelWidth;

All four wheel widths.

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

SuspensionMin

public float SuspensionMin;

Minimum suspension length.

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

SuspensionMax

public float SuspensionMax;

Maximum suspension length.

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

SuspensionFrequency

public float SuspensionFrequency;

Suspension spring frequency.

Unit: Hz. Range: [0.001, ∞]. Default: 1.5.

SuspensionDamping

public float SuspensionDamping;

Suspension damping ratio.

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

MaxSteerDeg

public float MaxSteerDeg;

Front wheel steering lock.

Unit: deg. Range: [0, 89]. Default: 30.

EngineMaxTorque

public float EngineMaxTorque;

Engine peak torque; Jolt's gearbox/engine curves supply the remaining defaults.

Unit: N*m. Range: [0.001, ∞]. Default: 500.

RearWheelDrive

public bool RearWheelDrive;

Rear-wheel drive; false selects front-wheel drive.

Default: true.

Layer

public uint Layer;

Chassis collision layer.

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

Methods

Access

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

No description yet.

Insert

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

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.