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

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.

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


State Fields

FieldTypeDescription
gearboxHandling, timer, timerConstants, inputValues, shiftPreventionData, shiftBehavior, smoothedValuestableshared controller data.
currentGearIndex, maxGearIndex, minGearIndexnumbertransmission metadata.
throttle, brake, clutchRatio, shiftingAggression, throttleInputnumberinput and demand state.
isArcadeSwitched, isSportModeActivebooleanlogic flags.
smoothedAvgAVInput, rpm, idleRPM, maxRPMnumberspeed telemetry.
engineThrottle, engineLoad, engineTorque, flywheelTorque, gearboxTorquenumberload telemetry.
ignition, isEngineRunningbooleanengine status.
oilTemp, waterTemp, checkEnginenumberthermal diagnostics.
energyStoragestablefuel containers.

Public API

FunctionDescription
shiftUp()Manages PRND mode selection.
getGearName()returns active mode and gauge position.
getState()State persistence.

Hooks

HookDescription
init(jbeamData, sharedFunctionTable)Configures CVT target RPM based on engine torque curves.
gearboxBehaviorChanged(behavior)Selects the appropriate update loop.

See Also

  • Vehicle Controller — Parent controller
  • CVT Gearbox v1 — Original CVT implementation

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.

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.

On this page

State FieldsPublic APIHooksSee Also