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

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.

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.


State Fields

FieldTypeDescription
gearboxHandling, timer, timerConstants, inputValues, shiftPreventionData, shiftBehavior, smoothedValuestableshared state data.
currentGearIndex, maxGearIndex, minGearIndexnumbergear range.
throttle, brake, clutchRationumberuser input state.
shiftingAggressionnumberaggression level (typically fixed at 1 for sequentials).
isArcadeSwitched, isSportModeActivebooleanlogic status flags.
smoothedAvgAVInput, rpm, idleRPM, maxRPMnumberspeed telemetry.
engineThrottle, engineLoad, engineTorque, flywheelTorque, gearboxTorquenumberload telemetry.
ignition, isEngineRunningbooleanengine state.
oilTemp, waterTemp, checkEnginenumberthermal diagnostic state.
energyStoragestablefuel sources.

Public API

FunctionDescription
shiftUp()Requests a step up or down in the gear sequence.
shiftToGearIndex(index, ignoreSequentialBounds)Attempts to shift to a specific gear index, optionally bypassing sequential constraints.
getGearName()returns gear index and UI position.
getState()State persistence for the current gear.

Hooks

HookDescription
init(jbeamData, sharedFunctionTable)Initializes ignition cut timing and sequential shift parameters.
gearboxBehaviorChanged(behavior)Selects appropriate update loops for automated or manual clutch usage.

See Also

  • Vehicle Controller — Parent controller
  • Manual Gearbox — H-pattern manual
  • DCT Gearbox — Dual-clutch transmission
  • Sequential Lever Animation — Shifter prop animation

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.

Electric Battery Component

Logic defined in `lua/vehicle/energyStorage/electricBattery.lua`. Simulates electrical energy storage for EVs and hybrids.

On this page

State FieldsPublic APIHooksSee Also