Hey all!
I found an 'old' car traffic example by R0J0hound;
construct.net/out
Which I'm really grateful for!
But I noticed, as well as by reading an old topic of mine where the link was posted, that it wasn't completely finished.
Main problem is that there is congestion at the junction, when too many cars want to go in different directions. Problem: They get stuck. They do move tiny bits, but through eachother. I'd love to see it solved, I'm sure many others would get great value from this.
So what I was thinking is, if there are three or more cars entering the junction, and they are all waiting for eachother (and the code 'knows' this in advance) have a car take another turn, instead of the turn that would cause trouble between the cars at the junction.
I couldn't figure out what lines to adapt/add and where, partly because I don't understand what everything 'does'.
P.S. I posted this in C3 section because I used the code in a C3 project.