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

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.

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.


State Fields

FieldTypeDescription
vehicleStatstableMetadata including wheelBase, mass, inertiaZ, and characteristicSpeed.
wheelAccesstableMap of physical wheel objects for the four primary corners.
turningCircleSpeedRatiostableMultipliers for individual wheel speeds based on the current turning radius.

Public API

FunctionDescription
calculateCharacteristicSpeed()Computes the understeer/oversteer characteristic based on mass distribution and tire stiffness.
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
initSecondStage(jbeamData)Identifies corner wheels and calculates static vehicle geometry (axle distances, CoG).
update(dt)Continuously calculates the theoretical turning circle and wheel speed ratios.
module.reset()Resets the controller to its initial state.
module.updateGFX(dt)Per-frame update for visual state and UI synchronization.

See Also

  • Sensor Hub — Raw sensor data aggregation
  • Virtual Sensors — Software-derived values
  • CMU — Parent control management unit

Sensor Hub

Central aggregation point for all driving dynamics sensor data. Collects and normalizes readings from wheel speed sensors, accelerometers, gyroscopes, and steering angle sensors into a unified data structure consumed by supervisors.

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.

On this page

State FieldsPublic APIHooksSee Also