Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

gaugeClusters.reader

Reads what a gauge shows from any car. read(id) answers one table: kmh, signed speed, rpm, rpmIdle, redline, rpmMax, gear and gearLabel (R / N / 1.. / -), gears, throttle, brake, boost, load, limiter, damage, plus source (values for a car writing the driving contract, vehicle for a plain VehicleController car read through Physics.vehicleState, none). resolve(car?) finds the car to read: the given one, else the local player's own car (their avatar or what it sits in, else what the main camera follows). gearLabel(n), isCar(id), localAvatar(), cameraFollow() are exported too. Used by every gauge; useful to any HUD that shows car state.