RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

AI Module ReferenceBackwards Compatibility Module ReferenceBdebug Module ReferenceBdebugImpl Module ReferenceBeamstate Module ReferenceBullettime Module ReferenceController Module ReferenceDamageTracker Module ReferenceDrivetrain Module ReferenceElectrics Module ReferenceElectrics Custom Value ParserEnergyStorage Module ReferenceExtensions Module ReferenceFire Module ReferenceVehicle Engine True GlobalsGuihooks Module ReferenceGUI Streams Module ReferenceHTML Texture Module ReferenceHydros Module ReferenceInput Module ReferenceJBeam-Lua Integration GuideMapmgr Module ReferenceMaterial Module ReferenceBeamNG Math & Unit Conversions Referenceobj (Vehicle C++ Object)PartCondition Module ReferenceParticlefilter Module ReferenceParticles Module ReferencePowertrain Module ReferenceVehicle Property & Module TreeProps Module ReferenceProtocols Module ReferenceRecovery Module ReferenceScriptAI Module ReferenceSensors Module ReferenceSounds Module ReferenceStreams Module ReferenceThrusters Module Reference`v` (Vehicle Data & JBeam)Wheels Module Reference
JBeam System OverviewJBeam Stage 2 Loader

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API Referencevejbeam

JBeam Stage 2 Loader

Module defined in `lua/vehicle/jbeam/stage2.lua`. This is the primary interface for committing JBeam data to the C++ physics engine. In the vehicle VM, this module is exposed via the global `v`.

Module defined in lua/vehicle/jbeam/stage2.lua. This is the primary interface for committing JBeam data to the C++ physics engine. In the vehicle VM, this module is exposed via the global v.

Exports

Functions

loadVehicleStage2(vdataStage1) (callable)

  • Arguments: vdataStage1 (table): The merged JBeam data from Stage 1.

  • Description: The main entry point for vehicle loading. It triggers the physics push and populates the v.data and v.config tables.

  • Returns: vdataStage1.vdata

Physics Commit Functions (Internal)

These functions process specific sections of the JBeam table and use obj methods to commit them to the engine.

  • processNodes(vehicle): Commits nodes via obj:setNode.
  • processBeams(vehicle): Commits beams via obj:setBeam.
  • processWheels(vehicle): Sets up physical wheel objects via obj:setWheel.
  • processTriangles(vehicle): Commits collision/aero triangles via obj:setTriangle.
  • processRefNodes(vehicle): Sets vehicle reference orientation via obj:setReferenceNodes.
  • processTorsionbars(vehicle): Commits torsion bars via obj:setTorsionbar.
  • processRails(vehicle) / processSlidenodes(vehicle): Handles rail and slidenode physics.

Related

  • v Global: The public interface for the data generated by this module.
  • obj Binding: The C++ interface used to push this data.

JBeam System Overview

The `jbeam/` directory contains the logic for parsing, compiling, and pushing JBeam data to the physics engine.

Automatic Gearbox

Torque-converter based automatic transmission with planetary gear sets. Simulates gear selection logic, shift scheduling, and torque multiplication for traditional automatic transmissions.

On this page

ExportsFunctionsloadVehicleStage2(vdataStage1) (callable)Physics Commit Functions (Internal)Related