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
4WD / Transfer Case ControllerAdvanced Coupler ControlAirplane Control SurfacesAxle Lift ControllerBeacon Spin ControllerBeam NavigatorBypass Dampers ControllerController TemplateControl ModesDrag TimerDrive ModesDummy ControllerElectronic Stability Control (ESC)ETK Gauges ControllerVehicle Controllers OverviewHydraulic Suspension ControllerInput/Output Demo ControllerJATO (Jet Assisted Take-Off)Lightbar ControllerLine LockLogger TemplateNitrous Oxide InjectionPlayer ControllerPneumatics System ControllerPower Steering ControllerPyrotechnic Charge ControllerSBR Gauges ControllerShift Lights ControllerTire Pressure ControlTrailer Landing Feet ControllerTwo-Step Launch ControlVivace Gauges ControllerWendover Gauges Controller
Control Management Unit (CMU)
Sensor HubVehicle Data ProcessorVirtual Sensors

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 ReferencevecontrollerdrivingDynamicssensors

Virtual Sensors

Software-derived sensor values computed from physical sensor data. Estimates quantities that aren't directly measured, such as body slip angle, tire slip ratios, and surface friction estimates using observer/estimator algorithms.

Software-derived sensor values computed from physical sensor data. Estimates quantities that aren't directly measured, such as body slip angle, tire slip ratios, and surface friction estimates using observer/estimator algorithms.


State Fields

FieldTypeDescription
virtualtableCalculated values for speed, bodySlipAngle, and wheelSpeed.
trustWorthinesstableConfidence levels (0..1) for various estimated states based on sensor noise and vehicle conditions.

Public API

FunctionDescription
registerCMU(cmu)Links to the CMU.
module.setDebugMode(debugEnabled)Sets the debug mode.
module.shutdown()Shuts down the module and cleans up resources.

Hooks

HookDescription
initLastStage()Calculates the offset between the reference sensor node and the vehicle's CoG for rotation compensation.
update(dt)Primary state estimation loop. Compensates raw accelerations for rotation and integrates them to find true speed and slip angle.
updateFixedStep(dt)Updates confidence metrics and checks for reset criteria (e.g., if the vehicle is stopped or rolling straight).
module.updateGFX(dt)Per-frame update for visual state and UI synchronization.

See Also

  • Sensor Hub — Physical sensor aggregation
  • Vehicle Data — Processed vehicle state
  • CMU — Parent control management unit

Vehicle Data Processor

Processes raw sensor inputs into derived vehicle state data — speed estimates, slip angles, weight transfer, and dynamic load calculations. Provides the foundation data that supervisors use for intervention decisions.

Traction Control Supervisor

Advanced traction control system (TCS) that monitors wheel slip and coordinates multiple actuators to maintain traction. Can reduce engine torque, apply individual wheel brakes, and adjust differential settings to prevent wheelspin during acceleration.

On this page

State FieldsPublic APIHooksSee Also