Torque Valley: Driving, Drift and Crash Sandbox
README.md
aiDrivers.traffic
The car list every AI driver on a peer shares, so seven drivers make one list a second between them instead of seven: cars() returns { id, ref, kind } for every torqueCars Car chassis (from torqueCars.cars) plus every builtin VehicleController chassis (found by a scene walk every 5 s), rebuilt at most once a second. invalidate() forces the next call to rebuild it, for code that just spawned cars. AiDriver reads it for following distance, overtaking and leaning; a traffic manager or a minimap can read it too.