bicarbon8/JsVehicleTrafficSimulator

Vehicles that are changing lanes sometimes get overrun by cars in the lane they're merging into

Closed this issue · 1 comments

When a vehicle "decides" to change lanes it doesn't consider any existing vehicles approaching from behind. This means that the vehicles will sometimes enter a lane at a slow speed and an existing vehicle in the lane will not have time to slow down so it will collide. The change lane logic needs to take into consideration vehicles not just in front of them, but also behind them that might not have time to slow down.

resolved by 1cc12c1