3 ms·
I'd like to explore more realistic behavior at some point. Right now, vehicles will avoid starting a turn if there's not enough time left in the signal, but thi
by dabreegster 7y ago
I'd like to explore more realistic behavior at some point. Right now, vehicles will avoid starting a turn if there's not enough time left in the signal, but this is an optimistic estimate assuming nobody else is creeping along on the same turn: https://github.com/dabreegster/abstreet/blob/770507610caf4e4129b39b166c1a20ece9171de2/sim/src/mechanics/intersection.rs#L384 https://github.com/dabreegster/abstreet/blob/770507610caf4e4...
Right now, it's hard to get a full day of simulation to complete at all, because vehicles gridlock on really short roads inferred from OSM. Once a realistic amount of traffic can get through at all, then I'd love to simulate some percentage of illegal behavior.