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

Manual Gearbox Shift Logic

Shift logic for manual (stick shift) transmissions. Manages clutch engagement, synchromesh simulation, gear grinding detection, and rev-matching. In arcade mode, provides automatic clutch assistance.

Shift logic for manual (stick shift) transmissions. Manages clutch engagement, synchromesh simulation, gear grinding detection, and rev-matching. In arcade mode, provides automatic clutch assistance.


State Fields

FieldTypeDescription
gearboxHandling, timer, timerConstants, inputValues, shiftPreventionData, shiftBehavior, smoothedValuestableshared controller state.
currentGearIndex, maxGearIndex, minGearIndexnumberActive gear information.
throttle, brake, clutchRatio, shiftingAggressionnumberprocessed user inputs.
isArcadeSwitched, isSportModeActive, isShiftingbooleanlogic and shift status flags.
smoothedAvgAVInput, rpm, idleRPM, maxRPMnumberspeed telemetry.
engineThrottle, engineLoad, engineTorque, flywheelTorque, gearboxTorquenumberpowertrain load state.
ignition, isEngineRunningbooleanengine state.
oilTemp, waterTemp, checkEnginenumberthermal state.
energyStoragestablefuel sources.

Public API

FunctionDescription
shiftToGearIndex(index)Directly attempts to engage a specific gear (H-shifter mode).
getGearName()Returns gear index and UI position.
getState()Persists the current gear index.

Hooks

HookDescription
init(jbeamData, sharedFunctionTable)Initializes clutch rates, launch targets, and rev-match parameters.
gearboxBehaviorChanged(behavior)Configures update loops for manual or automated (arcade) clutch usage.
shiftUpOnDown()Handlers for sequential-style input events, managing the multi-stage shift state (clutch in, neutral, shift, clutch out).

See Also

  • Vehicle Controller — Parent controller
  • Sequential Gearbox — Sequential manual
  • H-Pattern Animation — Shifter prop animation

Electric Motor Shift Logic

Shift logic for electric motor drivetrains. Manages single or multi-speed EV transmissions, regenerative braking integration, and one-pedal driving mode. Handles the unique torque characteristics of electric motors.

Sequential Gearbox Shift Logic

Shift logic for sequential manual transmissions. Gear changes are made one step at a time (up or down) via paddle shifters or a sequential lever. Supports flat-shift (upshift without lifting throttle) and auto-blip downshifts.

On this page

State FieldsPublic APIHooksSee Also