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
Vehicle Controller
Automatic Gearbox Shift LogicCVT Gearbox Shift LogicCVT Gearbox v2 Shift LogicDCT Gearbox Shift LogicDummy Shift LogicElectric Motor Shift LogicManual Gearbox Shift LogicSequential Gearbox Shift Logic

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 ReferencevecontrollervehicleControllershiftLogic

DCT Gearbox Shift Logic

Shift logic module for Dual-Clutch Transmissions (DCT). Pre-selects the next gear on the alternate shaft for near-instantaneous shifts. Manages clutch engagement, pre-selection strategy, and launch control integration.

Shift logic module for Dual-Clutch Transmissions (DCT). Pre-selects the next gear on the alternate shaft for near-instantaneous shifts. Manages clutch engagement, pre-selection strategy, and launch control integration.


State Fields

FieldTypeDescription
gearboxHandling, timer, timerConstants, inputValues, shiftPreventionData, shiftBehavior, smoothedValuestableshared controller data buffers.
currentGearIndex, maxGearIndex, minGearIndexnumberactive gear range.
throttle, brake, clutchRatio, shiftingAggressionnumberuser input state.
isArcadeSwitched, isSportModeActivebooleanlogic status flags.
smoothedAvgAVInput, rpm, idleRPM, maxRPMnumberspeed state.
engineThrottle, engineLoad, engineTorque, flywheelTorque, gearboxTorquenumberload telemetry.
ignition, isEngineRunningbooleanengine health and state.
oilTemp, waterTemp, checkEnginenumberthermal diagnostic state.
energyStoragestablelinked fuel containers.

Public API

FunctionDescription
shiftUp()Handles PRNDS and manual mode requests, managing both internal shafts.
setDefaultForwardMode(mode)sets the default mode (D or S).
getGearName()returns the name (e.g., 'S4') and cluster UI position.
getState()serializes current transmission mode.

Hooks

HookDescription
init(jbeamData, sharedFunctionTable)Sets up DCT-specific clutch timing, launch RPMs, and gear shaft mappings.
gearboxBehaviorChanged(behavior)Configures update loops for pre-selection and shifting.

See Also

  • Vehicle Controller — Parent controller
  • Automatic Gearbox — Traditional automatic
  • Sequential Gearbox — Sequential manual

CVT Gearbox v2 Shift Logic

Updated CVT shift logic with improved ratio management and response characteristics. Second-generation implementation with better fuel efficiency optimization and sportier throttle response.

Dummy Shift Logic

A minimal shift logic implementation that provides the required interface without actual shifting behavior. Used for direct-drive vehicles, single-speed EVs, or testing scenarios.

On this page

State FieldsPublic APIHooksSee Also