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

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 Referenceve

Bdebug Module Reference

Module defined in `lua/vehicle/bdebug.lua`. Lightweight proxy that delegates all debug visualization calls to the heavyweight `bdebugImpl` module. Use this module to toggle node/beam visualization, skeleton overlays, center-of-gravity markers, and collision triangle rendering without loading the full debugger until needed.

Module defined in lua/vehicle/bdebug.lua. Lightweight proxy that delegates all debug visualization calls to the heavyweight bdebugImpl module. Use this module to toggle node/beam visualization, skeleton overlays, center-of-gravity markers, and collision triangle rendering without loading the full debugger until needed.

See Also

  • BdebugImpl: Detailed implementation.
  • Obj: For using debugDrawProxy.

State Fields

VariableDescription
initState, state, stateNoResetProxied access to debugger configuration and active state.

Public API

FunctionSignatureDescription
beamBroke(id, energy) (**hook**)Visualizes beam breakage.
clearAllNodeDebugText() , clearNodeDebugText(...), clearTypeNodeDebugText(...) (**callable**)Node label management.
cogChange(...) , colTrisModeChange(...), nodedebugtextModeChange(...), nodevisModeChange(...), nodetextModeChange(...), skeletonModeChange(...) (**callable**)Visualization mode cyclers.
debugDraw(focusPos) (**hook**)Proxy for main drawing routine.
init() , reset() (**hook**)Lifecycle hooks.
isEnabled() (**callable**)Returns debug status.
nodeCollision(p) (**hook**)Visualizes impacts.
onDeserialize(...) , onPlayersChanged(...), onSerialize(...), recieveViewportSize() (**hook**)Implementation state hooks. Returns table.
requestDrawnBeamsGE(...) , requestDrawnNodesGE(...), requestState() (**callable**)Data sync with UI and Engine.
setEnabled(enabled) , setNodeDebugText(...), setPartsSelected(...), setState(...), toggleEnabled() (**callable**)Debugger control and state updates.

Backwards Compatibility Module Reference

Module defined in `lua/vehicle/backwardsCompatibility.lua`. This system acts as a translation layer for older vehicle JBeam configurations, converting legacy definitions (pre-powertrain/controller era

BdebugImpl Module Reference

Module defined in `lua/vehicle/bdebugImpl.lua`. The full-featured debugger implementation for visualizing vehicle physics state. Renders node positions, beam stress/deformation, collision triangles, skeleton overlays, and center-of-gravity markers in the 3D world. Loaded on demand by the lightweight `bdebug` proxy.

On this page

See AlsoState FieldsPublic API