Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

driveProgress.reader

Turns a car into the sample driveProgress.score eats. Reader.resolve(car) answers the car to read: the given entity, id or name, else the local player's own car (torqueCars' registry, the player's avatar or what it sits in, or what the main camera follows). Reader.sample(id) reads the driving contract's values (car.kmh or car.speed, car.impactCount, car.impactSpeed, car.damage, and car.slip / car.airborne when published) plus the chassis velocity and heading for the slip angle and a short ground ray for air time. Works with any contract car and with plain VehicleController cars.