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
Beams
All beams in the assembled vehicle.
public List<AssembledBeam> Beams { get; init; }
Property Value
BrakeControl
Brake-controller metadata parsed from active parts, including ABS flags and targets.
public JBeamBrakeControlDefinition? BrakeControl { get; init; }
Property Value
Engine
Engine metadata parsed from the active JBeam parts, when present.
public JBeamEngineDefinition? Engine { get; init; }
Property Value
FlexBodies
All flex-body mesh mappings.
public List<AssembledFlexBody> FlexBodies { get; init; }
Property Value
FolderPath
Path to the vehicle folder (used for loading meshes).
public string FolderPath { get; init; }
Property Value
FuelTank
Fuel-tank metadata parsed from active parts (capacity, starting fuel).
public JBeamFuelTankDefinition? FuelTank { get; init; }
Property Value
Gearbox
Gearbox metadata parsed from the active JBeam parts, when present.
public JBeamGearboxDefinition? Gearbox { get; init; }
Property Value
Nodes
All nodes keyed by ID.
public Dictionary<string, AssembledNode> Nodes { get; init; }
Property Value
PartGearRatios
Top-level gear ratios defined by active selected parts such as final drives.
public List<AssembledPartGearRatio> PartGearRatios { get; init; }
Property Value
Parts
Logical parts (chassis + detachable pieces). The first entry (index 0) is always the main chassis.
public List<VehiclePart> Parts { get; init; }
Property Value
PowertrainDevices
Powertrain device graph assembled from active parts.
public List<JBeamPowertrainDevice> PowertrainDevices { get; init; }
Property Value
PressureWheelOptions
Pressure-wheel option objects assembled from the active parts.
public List<AssembledPressureWheelOptions> PressureWheelOptions { get; init; }
Property Value
PressureWheels
Pressure wheel metadata assembled from active parts.
public List<JBeamPressureWheel> PressureWheels { get; init; }
Property Value
RefNodes
Orientation ref nodes from jbeam refNodes. Keys: "ref", "back", "left", "up", "leftCorner", "rightCorner".
public Dictionary<string, string> RefNodes { get; init; }
Property Value
SetupVariables
Setup-variable metadata from the active BeamNG parts.
public List<JBeamVariableDefinition> SetupVariables { get; init; }
Property Value
TractionControl
Traction-control metadata parsed from active parts, when present.
public JBeamTractionControlDefinition? TractionControl { get; init; }
Property Value
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
VehicleController
Shift and launch metadata parsed from the active JBeam vehicleController sections, when present.
public JBeamVehicleControllerDefinition? VehicleController { get; init; }
Property Value
VehicleName
Gets the name of the vehicle.
public string VehicleName { get; init; }