Table of Contents

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

searchFolders IEnumerable<string>

Candidate folders that may contain JBeam files for the active vehicle.

vehicleFolder string

Primary vehicle folder used for diagnostics and content resolution.

pcConfig PcConfig

Optional BeamNG PC configuration to apply while assembling.

Returns

VehicleDefinition

The assembled vehicle definition.

Exceptions

InvalidOperationException

Thrown when no root main JBeam 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

vehicleFolder string

Primary vehicle folder that contains JBeam files.

pcConfig PcConfig

Optional BeamNG PC configuration to apply while assembling.

Returns

VehicleDefinition

The assembled vehicle definition.