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

Automatic Gearbox Shift Logic

Shift logic module for traditional torque-converter automatic transmissions. Manages upshift/downshift points based on throttle position, vehicle speed, and driver aggression. Supports sport mode, kickdown, and manual override.

Shift logic module for traditional torque-converter automatic transmissions. Manages upshift/downshift points based on throttle position, vehicle speed, and driver aggression. Supports sport mode, kickdown, and manual override.


State Fields

FieldTypeDescription
gearboxHandling, timer, timerConstants, inputValues, shiftPreventionData, shiftBehavior, smoothedValuestableInternal references to core vehicle controller shared data structures.
currentGearIndex, maxGearIndex, minGearIndexnumberActive and allowable gear ranges.
throttle, brake, clutchRationumberActive user inputs after arcade or safety processing.
shiftingAggressionnumberValue from 0..1 determining shift speed and RPM thresholds.
isArcadeSwitched, isSportModeActive, isManualModeActivebooleanstatus flags for the active control logic.
smoothedAvgAVInput, rpm, idleRPM, maxRPMnumberSmoothed engine and gearbox speeds.
engineThrottle, engineLoad, engineTorque, flywheelTorque, gearboxTorquenumberReal-time powertrain load and torque telemetry.
ignition, isEngineRunningbooleanengine status state.
oilTemp, waterTemp, checkEnginenumberThermal and diagnostic status.
energyStoragestableList of fuel/energy sources for the engine.

Public API

FunctionDescription
shiftUp()Manually cycles through PRNDS modes or triggers shifts in M mode.
shiftToGearIndex(index)Attempts to shift to a specific mode or gear via H-shifter or external request.
setDefaultForwardMode(mode)Configures the primary forward driving mode.
getGearName()Returns formatted gear names (e.g., 'D1', 'S2', 'R') and visual position for UI clusters.
getState()Handles serialization of transmission mode for saves and reloads.

Hooks

HookDescription
init(jbeamData, sharedFunctionTable)Initializes the shift logic, defines available modes (PRNDS), and sets up torque converter lockup parameters.
gearboxBehaviorChanged(behavior)Switches the logic handlers based on the user's selected gearbox behavior.

See Also

  • Vehicle Controller — Parent controller
  • DCT Gearbox — Dual-clutch alternative
  • CVT Gearbox — Continuously variable alternative

Vehicle Controller

The "brain" of the vehicle — maps player inputs (throttle, brake, clutch) to powertrain actions, manages shifting logic, and handles arcade vs. realistic driving modes. Coordinates between input processing, gear selection, engine control, and dashboard output.

CVT Gearbox Shift Logic

Shift logic module for Continuously Variable Transmissions (CVT). Manages the target ratio based on power demand and efficiency, providing seamless ratio changes without discrete gear steps.

On this page

State FieldsPublic APIHooksSee Also