Turbocharger
Exhaust-driven forced induction compressor. Uses exhaust gas energy to spin a turbine-compressor assembly, increasing intake air pressure for significant power gains with characteristic turbo lag.
Exhaust-driven forced induction compressor. Uses exhaust gas energy to spin a turbine-compressor assembly, increasing intake air pressure for significant power gains. Features realistic turbo spool-up dynamics (turbo lag), wastegate control, and blow-off valve simulation. Typically a sub-module of the Combustion Engine.
Public API
| Variable | Type | Description |
|---|---|---|
isExisting | boolean | Whether a turbocharger is installed on this engine. |
turboAV | number | Current angular velocity of the turbo shaft (rad/s). |
Hooks
| Hook | Description |
|---|---|
init | Initializes the turbocharger from JBeam data and links to the parent engine. |
updateGFX | Updates boost gauge values and audio each frame. |
updateFixedStep | Physics-rate update for spool dynamics and pressure calculations. |
turboUpdate | Core turbo physics step (spool, wastegate, compressor map). |
Usage Example
-- Access via the engine device
local engine = powertrain.getDevice("mainEngine")
if engine.turbocharger and engine.turbocharger.isExisting then
local turboRPM = engine.turbocharger.turboAV * 9.549
log("I", "turbo", "Turbo RPM: " .. turboRPM)
endSee Also
- Supercharger — Engine-driven alternative (no lag)
- Nitrous Oxide Injection — Chemical boost
- Combustion Engine — Parent engine device
- Combustion Engine Thermals — Thermal effects
Torsion Reactor
Stator/reactor element within a torque converter assembly. Redirects fluid flow to multiply torque during acceleration, then freewheels at coupling speed.
Viscous Clutch
Speed-sensitive coupling that transfers torque based on the rotational speed difference between input and output. Used in center differentials and AWD systems for passive torque distribution.