Table of Contents

Class VehicleDefinition

Namespace
LibreRally.Vehicle
Assembly
LibreRally.dll

A fully assembled vehicle definition produced by JBeamAssembler. All nodes, beams, and parts from the slot hierarchy are merged into flat collections. Coordinates are in BeamNG space: X = left, Y = forward, Z = up.

public class VehicleDefinition
Inheritance
VehicleDefinition
Inherited Members

Properties

ActiveMaterialSkinSelections

Active material-skin selections from the resolved BeamNG part tree.

public List<ActiveMaterialSkinSelection> ActiveMaterialSkinSelections { get; init; }

Property Value

List<ActiveMaterialSkinSelection>

Beams

All beams in the assembled vehicle.

public List<AssembledBeam> Beams { get; init; }

Property Value

List<AssembledBeam>

BrakeControl

Brake-controller metadata parsed from active parts, including ABS flags and targets.

public JBeamBrakeControlDefinition? BrakeControl { get; init; }

Property Value

JBeamBrakeControlDefinition

Engine

Engine metadata parsed from the active JBeam parts, when present.

public JBeamEngineDefinition? Engine { get; init; }

Property Value

JBeamEngineDefinition

FlexBodies

All flex-body mesh mappings.

public List<AssembledFlexBody> FlexBodies { get; init; }

Property Value

List<AssembledFlexBody>

FolderPath

Path to the vehicle folder (used for loading meshes).

public string FolderPath { get; init; }

Property Value

string

FuelTank

Fuel-tank metadata parsed from active parts (capacity, starting fuel).

public JBeamFuelTankDefinition? FuelTank { get; init; }

Property Value

JBeamFuelTankDefinition

Gearbox

Gearbox metadata parsed from the active JBeam parts, when present.

public JBeamGearboxDefinition? Gearbox { get; init; }

Property Value

JBeamGearboxDefinition

Nodes

All nodes keyed by ID.

public Dictionary<string, AssembledNode> Nodes { get; init; }

Property Value

Dictionary<string, AssembledNode>

PartGearRatios

Top-level gear ratios defined by active selected parts such as final drives.

public List<AssembledPartGearRatio> PartGearRatios { get; init; }

Property Value

List<AssembledPartGearRatio>

Parts

Logical parts (chassis + detachable pieces). The first entry (index 0) is always the main chassis.

public List<VehiclePart> Parts { get; init; }

Property Value

List<VehiclePart>

PowertrainDevices

Powertrain device graph assembled from active parts.

public List<JBeamPowertrainDevice> PowertrainDevices { get; init; }

Property Value

List<JBeamPowertrainDevice>

PressureWheelOptions

Pressure-wheel option objects assembled from the active parts.

public List<AssembledPressureWheelOptions> PressureWheelOptions { get; init; }

Property Value

List<AssembledPressureWheelOptions>

PressureWheels

Pressure wheel metadata assembled from active parts.

public List<JBeamPressureWheel> PressureWheels { get; init; }

Property Value

List<JBeamPressureWheel>

RefNodes

Orientation ref nodes from jbeam refNodes. Keys: "ref", "back", "left", "up", "leftCorner", "rightCorner".

public Dictionary<string, string> RefNodes { get; init; }

Property Value

Dictionary<string, string>

SetupVariables

Setup-variable metadata from the active BeamNG parts.

public List<JBeamVariableDefinition> SetupVariables { get; init; }

Property Value

List<JBeamVariableDefinition>

TractionControl

Traction-control metadata parsed from active parts, when present.

public JBeamTractionControlDefinition? TractionControl { get; init; }

Property Value

JBeamTractionControlDefinition

Vars

Physics variables from the active JBeam variable defaults plus any loaded .pc overrides. Variable names are stripped of their leading '$' (e.g., "spring_F_asphalt" = 60000). Used by VehiclePhysicsBuilder to set spring, damping, etc.

public Dictionary<string, float> Vars { get; }

Property Value

Dictionary<string, float>

VehicleController

Shift and launch metadata parsed from the active JBeam vehicleController sections, when present.

public JBeamVehicleControllerDefinition? VehicleController { get; init; }

Property Value

JBeamVehicleControllerDefinition

VehicleName

Gets the name of the vehicle.

public string VehicleName { get; init; }

Property Value

string