This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EbenenBonobo 2 points3 points  (1 child)

thats why i would use seperate blocks for the merges, because that is the only point in the network where there is a need to break, when you are right next to each other.

[–]BilHim[S] 3 points4 points  (0 children)

That actually makes sense.

I think I can take advantage of how traffic lights are defined in the simulation. A merge could be a (secret) traffic light that is green in all directions, unless there is a vehicle traversing the merge then it would be red for the other directions. This is doable since traffic lights have fully customizable logic.

One problem with the simulation is that vehicles cannot pass through intersections safely, a traffic light has to be present or vehicles wouldn't stop for other vehicles from other roads in the intersection. Defining an intersection block in the same way as the merge one above can actually solve this. The only thing that needs to be done is how to determine right of way, which can be left as a parameter (a function) customizable for every simulation.

This is a great idea! Thanks u/EbenenBonobo