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
BestLapSector2
Sector 2 time from best lap (not necessarily the best sector 2 time)
public float BestLapSector2
Field Value
BestLapTime
Represents the best lap time achieved during a race.
public double BestLapTime
Field Value
BestSector1
Represents the best recorded time for sector 1.
public double BestSector1
Field Value
BestSector2
Represents the best time recorded for sector 2, including the time from sector 1.
public double BestSector2
Field Value
Control
Who is in control of the vehicle.
public sbyte Control
Field Value
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
Remarks
See CountLapFlag for possible values:
CurSector1
Time of current sector 1 if valid.
public double CurSector1
Field Value
CurSector2
Time of current sector 2 plus sector 1 if valid.
public double CurSector2
Field Value
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
Expansion
For future use.
public byte[] Expansion
Field Value
- byte[]
FinishStatus
Represents the status of the vehicle's finish.
public sbyte FinishStatus
Field Value
Remarks
See FinishStatus for possible values:
Flag
Represents the current flag being shown to the vehicle.
public byte Flag
Field Value
Remarks
See PrimaryFlags for possible values.
Headlights
Headlights status.
public byte Headlights
Field Value
ID
Represents the slot ID for a player in a multiplayer session.
public int ID
Field Value
InGarageStall
Is in correct garage stall.
public byte InGarageStall
Field Value
InPits
Is in the pits.
public byte InPits
Field Value
IndividualPhase
Game phases
public byte IndividualPhase
Field Value
Remarks
See GamePhase for possible values.
IsPlayer
Is this the player's vehicle.
public byte IsPlayer
Field Value
LapDist
Current distance around the track
public double LapDist
Field Value
LapStartTime
Time this lap was started.
public double LapStartTime
Field Value
LapsBehindLeader
laps behind leader vehicle.
public int LapsBehindLeader
Field Value
LapsBehindNext
Laps behind the vehicle in the next higher place.
public int LapsBehindNext
Field Value
LastLapTime
Represents the time of the last lap
public double LastLapTime
Field Value
LastSector1
Represents the recorded time for the last Sector 1.
public double LastSector1
Field Value
LastSector2
Represents the time of the last sector 2 plus sector 1.
public double LastSector2
Field Value
LocalAcceleration
Acceleration (meters/sec^2) in local vehicle coordinates
public Vec3 LocalAcceleration
Field Value
LocalRotation
Represents the rotational velocity of the vehicle in local coordinates.
public Vec3 LocalRotation
Field Value
LocalRotationalAcceleration
Represents the rotational acceleration in local vehicle coordinates.
public Vec3 LocalRotationalAcceleration
Field Value
LocalVelocity
Velocity (meters/sec) in local vehicle coordinates.
public Vec3 LocalVelocity
Field Value
NumPenalties
Number of penalties currently outstanding for the vehicle.
public short NumPenalties
Field Value
NumPitstops
Number of pitstops made by the vehicle.
public short NumPitstops
Field Value
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
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
PitState
Pit state of the vehicle.
public byte PitState
Field Value
Remarks
See PitState for possible values:
Place
1-based position of the vehicle.
public byte Place
Field Value
Position
World position in meters.
public Vec3 Position
Field Value
Qualification
Qualification status 1-based.
public int Qualification
Field Value
Remarks
-1 indicates an invalid qualification status.
Sector
Represents the sector identifier in a specific sequence.
public sbyte Sector
Field Value
Remarks
See Sector for possible values:
ServerScored
whether this vehicle is being scored by server.
public byte ServerScored
Field Value
Remarks
Could be off in qualifying or racing heats.
TimeBehindLeader
Time behind leader vehicle.
public double TimeBehindLeader
Field Value
TimeBehindNext
Time behind the vehicle in the next higher place.
public double TimeBehindNext
Field Value
TimeIntoLap
Estimated time into lap.
public double TimeIntoLap
Field Value
TotalLaps
Represents the total number of laps completed.
public short TotalLaps
Field Value
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
UnderYellow
Indicates whether the car has taken a full-course caution flag at the start/finish line.
public byte UnderYellow
Field Value
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.