Table of Contents

Struct VehicleScoring

Namespace
rF2SharedMemoryNet.RF2Data.Structs
Assembly
rF2SharedMemoryNet.dll

Represents detailed scoring and telemetry data for a vehicle in rFactor 2.

public struct VehicleScoring
Inherited Members

Remarks

This structure provides comprehensive information about a vehicle's state, performance, and position during a race or session. It includes data such as lap times, sector times, position, control status, and telemetry details. Many fields are specific to rFactor 2's internal scoring and telemetry system.

Fields

BestLapSector1

Sector 1 time from best lap (not necessarily the best sector 1 time)

public float BestLapSector1

Field Value

float

BestLapSector2

Sector 2 time from best lap (not necessarily the best sector 2 time)

public float BestLapSector2

Field Value

float

BestLapTime

Represents the best lap time achieved during a race.

public double BestLapTime

Field Value

double

BestSector1

Represents the best recorded time for sector 1.

public double BestSector1

Field Value

double

BestSector2

Represents the best time recorded for sector 2, including the time from sector 1.

public double BestSector2

Field Value

double

Control

Who is in control of the vehicle.

public sbyte Control

Field Value

sbyte

Remarks

See ControlEntity for possible values:

CountLapFlag

Represents the flag indicating how laps and time are counted during an operation.

public byte CountLapFlag

Field Value

byte

Remarks

See CountLapFlag for possible values:

CurSector1

Time of current sector 1 if valid.

public double CurSector1

Field Value

double

CurSector2

Time of current sector 2 plus sector 1 if valid.

public double CurSector2

Field Value

double

DriverName

Represents the name of the driver as a byte array.

public byte[] DriverName

Field Value

byte[]

Remarks

The driver name is stored as a 32 byte array.

EstimatedLapTime

Estimated laptime.

public double EstimatedLapTime

Field Value

double

Expansion

For future use.

public byte[] Expansion

Field Value

byte[]

FinishStatus

Represents the status of the vehicle's finish.

public sbyte FinishStatus

Field Value

sbyte

Remarks

See FinishStatus for possible values:

Flag

Represents the current flag being shown to the vehicle.

public byte Flag

Field Value

byte

Remarks

See PrimaryFlags for possible values.

Headlights

Headlights status.

public byte Headlights

Field Value

byte

ID

Represents the slot ID for a player in a multiplayer session.

public int ID

Field Value

int

InGarageStall

Is in correct garage stall.

public byte InGarageStall

Field Value

byte

InPits

Is in the pits.

public byte InPits

Field Value

byte

IndividualPhase

Game phases

public byte IndividualPhase

Field Value

byte

Remarks

See GamePhase for possible values.

IsPlayer

Is this the player's vehicle.

public byte IsPlayer

Field Value

byte

LapDist

Current distance around the track

public double LapDist

Field Value

double

LapStartTime

Time this lap was started.

public double LapStartTime

Field Value

double

LapsBehindLeader

laps behind leader vehicle.

public int LapsBehindLeader

Field Value

int

LapsBehindNext

Laps behind the vehicle in the next higher place.

public int LapsBehindNext

Field Value

int

LastLapTime

Represents the time of the last lap

public double LastLapTime

Field Value

double

LastSector1

Represents the recorded time for the last Sector 1.

public double LastSector1

Field Value

double

LastSector2

Represents the time of the last sector 2 plus sector 1.

public double LastSector2

Field Value

double

LocalAcceleration

Acceleration (meters/sec^2) in local vehicle coordinates

public Vec3 LocalAcceleration

Field Value

Vec3

LocalRotation

Represents the rotational velocity of the vehicle in local coordinates.

public Vec3 LocalRotation

Field Value

Vec3

LocalRotationalAcceleration

Represents the rotational acceleration in local vehicle coordinates.

public Vec3 LocalRotationalAcceleration

Field Value

Vec3

LocalVelocity

Velocity (meters/sec) in local vehicle coordinates.

public Vec3 LocalVelocity

Field Value

Vec3

NumPenalties

Number of penalties currently outstanding for the vehicle.

public short NumPenalties

Field Value

short

NumPitstops

Number of pitstops made by the vehicle.

public short NumPitstops

Field Value

short

Orientation

Represents the rows of an orientation matrix.

public Vec3[] Orientation

Field Value

Vec3[]

PathLateral

Lateral position with respect to the approximate "center" path.

public double PathLateral

Field Value

double

PitGroup

Pit group name.

public byte[] PitGroup

Field Value

byte[]

Remarks

Stored a fixed-size byte array of 24 bytes.

PitLapDist

Represents the location of the pit in terms of lap distance.

public float PitLapDist

Field Value

float

PitState

Pit state of the vehicle.

public byte PitState

Field Value

byte

Remarks

See PitState for possible values:

Place

1-based position of the vehicle.

public byte Place

Field Value

byte

Position

World position in meters.

public Vec3 Position

Field Value

Vec3

Qualification

Qualification status 1-based.

public int Qualification

Field Value

int

Remarks

-1 indicates an invalid qualification status.

Sector

Represents the sector identifier in a specific sequence.

public sbyte Sector

Field Value

sbyte

Remarks

See Sector for possible values:

ServerScored

whether this vehicle is being scored by server.

public byte ServerScored

Field Value

byte

Remarks

Could be off in qualifying or racing heats.

TimeBehindLeader

Time behind leader vehicle.

public double TimeBehindLeader

Field Value

double

TimeBehindNext

Time behind the vehicle in the next higher place.

public double TimeBehindNext

Field Value

double

TimeIntoLap

Estimated time into lap.

public double TimeIntoLap

Field Value

double

TotalLaps

Represents the total number of laps completed.

public short TotalLaps

Field Value

short

TrackEdge

Represents the track edge position relative to the center path on the same side of the track as the vehicle.

public double TrackEdge

Field Value

double

UnderYellow

Indicates whether the car has taken a full-course caution flag at the start/finish line.

public byte UnderYellow

Field Value

byte

UpgradePack

Coded upgrades

public byte[] UpgradePack

Field Value

byte[]

Remarks

Stored as a fixed-size byte array of 16 bytes.

VehicleClass

Name of vehicle class.

public byte[] VehicleClass

Field Value

byte[]

Remarks

The array is marshaled as a fixed-size unmanaged array with a size of 32 bytes.

VehicleName

Represents the name of the vehicle as a byte array.

public byte[] VehicleName

Field Value

byte[]

Remarks

The array is fixed in size to 64 bytes.