Class JBeamAssembler
- Namespace
- LibreRally.Vehicle.JBeam
- Assembly
- LibreRally.dll
Loads all .jbeam files from a vehicle folder, resolves the slot hierarchy starting from the "main" slot, and produces a flat VehicleDefinition.
BeamNG jbeam coordinate space: X = right, Y = forward, Z = up. We convert to Stride space (X = right, Y = up, Z = backward) in VehiclePhysicsBuilder rather than here, to preserve raw data fidelity.
public static class JBeamAssembler
- Inheritance
-
JBeamAssembler
- Inherited Members
Methods
Assemble(IEnumerable<string>, string, PcConfig?)
Loads a vehicle from one or more search folders, using vehicleFolder
as the primary folder for diagnostics and config lookup.
public static VehicleDefinition Assemble(IEnumerable<string> searchFolders, string vehicleFolder, PcConfig? pcConfig = null)
Parameters
searchFoldersIEnumerable<string>Candidate folders that may contain JBeam files for the active vehicle.
vehicleFolderstringPrimary vehicle folder used for diagnostics and content resolution.
pcConfigPcConfigOptional BeamNG PC configuration to apply while assembling.
Returns
- VehicleDefinition
The assembled vehicle definition.
Exceptions
- InvalidOperationException
Thrown when no root
mainJBeam part can be found.
Assemble(string, PcConfig?)
Loads a vehicle from a single folder and its sub-folders.
public static VehicleDefinition Assemble(string vehicleFolder, PcConfig? pcConfig = null)
Parameters
vehicleFolderstringPrimary vehicle folder that contains JBeam files.
pcConfigPcConfigOptional BeamNG PC configuration to apply while assembling.
Returns
- VehicleDefinition
The assembled vehicle definition.