Struct · Ara
VehicleTelemetry
Vehicle drivetrain and suspension state mirrored into ECS after each tick.
public struct VehicleTelemetry : IComponent<VehicleTelemetry>Properties
TypeIndex
public static uint TypeIndex { get; }Stable engine component index.
Fields
WheelsInContact
public uint WheelsInContact;Grounded wheel count.
Range: [0, 4]. Default: 0. Replicated to relevant clients.
EngineRpm
public float EngineRpm;Current engine speed in revolutions per minute.
Range: [0, ∞]. Default: 0. Replicated to relevant clients.
Gear
public int Gear;Gear index (negative is reverse).
Default: 0. Replicated to relevant clients.
Methods
Access
public static ref VehicleTelemetry Access(Entity entity, bool write);No description yet.
Insert
public static void Insert(in Commands commands, Entity entity, in VehicleTelemetry value);No description yet.
Contains
public static bool Contains(Entity entity);No description yet.