Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

torqueCars.bench

Magazine-style measurements in simulated time (a slow frame rate does not change them): accelerate(car, kmh) returns the seconds from rest to a speed, brake(car, kmh) accelerates to a speed and returns the metres to stop. Run in play with a long flat stretch ahead of the car; both yield until done.

local Bench = require("torqueCars.bench")
print(Bench.accelerate(entity.find("car_rally"), 100).seconds)