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
Automatic GearboxCentrifugal ClutchCombustion EngineCombustion Engine ThermalsCompressorCVT GearboxDCT GearboxDifferentialElectric MotorElectric ServoElectric WinchPowertrain Components OverviewFriction ClutchGeneric Torque ProviderHydraulic AccumulatorHydraulic CylinderHydraulic PumpHydraulic WinchLinear ActuatorManual GearboxMulti-ShaftNitrous Oxide InjectionPowertrain Base DeviceRange BoxSequential GearboxShaftSplit ShaftSuperchargerTorque ConverterTorsion ReactorTurbochargerViscous Clutch

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 Referencevepowertrain

Powertrain Base Device

Base class inherited by all powertrain components. Provides common methods for locking, disabling, and querying device state. Every powertrain device shares these properties.

Base class inherited by all powertrain components (engines, gearboxes, differentials, shafts, wheels). Any method or property listed here is available on every powertrain device instance returned by powertrain.getDevice().


Common Properties

PropertyTypeDescription
device.inputAVnumberAngular velocity at the input (rad/s).
device.outputAV1numberAngular velocity at output port 1 (rad/s). Additional ports: outputAV2, etc.
device.outputTorque1numberTorque at output port 1 (Nm). Additional ports: outputTorque2, etc.
device.isBrokenbooleanWhether the device has sustained catastrophic damage.
device.cumulativeGearRationumberTotal gear ratio from this device to the powertrain root.
device.cumulativeInertianumberTotal rotational inertia (kg·m²) downstream of this device.

Common Instance Methods

MethodSignatureDescription
lockUpdevice:lockUp()Catastrophically locks the device, setting output AV to 0 and marking as broken.
disabledevice:disable()Disables the device. A disabled device passes 0 torque.
enabledevice:enable()Re-enables a previously disabled device.
applyDeformGroupDamagedevice:applyDeformGroupDamage(damage, type)Internal hook for applying damage from JBeam deformGroup triggers.

Usage Example

-- Get any powertrain device
local device = powertrain.getDevice("mainEngine")

-- Check if broken
if device.isBroken then
  log("W", "powertrain", "Device is broken!")
end

-- Disable a device
device:disable()

-- Catastrophic failure
device:lockUp()

See Also

  • Combustion Engine — ICE implementation
  • Electric Motor — Electric propulsion
  • Differential — Power splitting
  • Manual Gearbox — Manual transmission

Nitrous Oxide Injection

Chemical boost system that injects nitrous oxide (N₂O) into the engine intake for temporary power increases. Models tank capacity, arming, and injection state.

Range Box

Transfer case providing high and low range gear selections for 4WD vehicles. Multiplies the gear ratios for off-road crawling or highway driving.

On this page

Common PropertiesCommon Instance MethodsUsage ExampleSee Also