five-on-it / packages/ai/src/traffic / setTraffic
Function: setTraffic()
setTraffic(
ai,options):void
Defined in: packages/ai/src/traffic.ts:397
Sets how many ambient cars the world keeps, and where they may appear and go: the spawn points (each on its nearest lane its way) and the spawn areas (the lanes whose middle lies inside one) narrow where new cars appear.
Parameters
ai
options
Returns
void