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

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.

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.

See Also

  • Bdebug: Proxy interface.
  • Obj: For using debugDrawProxy.

State Fields

VariableDescription
initState, state, stateNoResetConfiguration and active state containers.
isEnabledTrue if visualizing.
partsStateTracked part highlights.

Public API

FunctionSignatureDescription
beamBroke(...) , nodeCollision(...) (**hook**)Visual impact/breakage callbacks.
clearAllNodeDebugText() , clearNodeDebugText(...), clearTypeNodeDebugText(...) (**callable**)Label management.
cogChange(...) , colTrisModeChange(...), nodedebugtextModeChange(...), nodevisModeChange(...), nodetextModeChange(...), skeletonModeChange(...) (**callable**)Visualization mode cyclers.
debugDraw(focusPos) (**hook**)Core drawing routine evaluating active modes.
init(...) , reset(), resetModes() (**hook**)Implementation setup and state cleanup.
onPlayersChanged(m) (**hook**)Player tracking update.
recieveViewportSize(...) (**hook**)Viewport sync.
requestDrawnBeamsGE(...) , requestDrawnNodesGE(...), requestState() (**callable**)UI and Game Engine data sync.
setNodeDebugText(...) , setPartsSelected(...), setState(...) (**callable**)State and label updates.
toggleEnabled() (**callable**)Master toggle.
module.setEnabled(enabled)Enables or disables the debugger visualization.

Usage Example

-- The implementation is typically accessed through the bdebug proxy:
bdebug.toggleEnabled()
bdebug.setState({skeleton = true, nodevis = true})

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.

Beamstate Module Reference

Module defined in `lua/vehicle/beamstate.lua`. This module manages the vehicle's structural integrity, including beam breakage and deformation, couplers (towing/attachment), breakgroups, and tire defl

On this page

See AlsoState FieldsPublic APIUsage Example