Hello!
I was wondering if it's possible to make some simple car traffic.
Now I *think* I grasp the basics of it, but I strongly feel like it can be done in a much better and less time consuming way.
So basically, I have 18 different cars (most same models but different color) and I want them to stop and give way when a car is coming from the right.
What I have now is like this:
As you can see that can be much more efficient, I would have to copy that group and change it 17 times for each car group.
I was also wondering how to handle things when four cars are arriving at the crossing around the same time, with LOS they might just end up giving way forever to the one on the right. Now I did have some stop lines added all over the map, basically the horizontal lanes are supposed to be given way. Green and grey car are supposed to give way as you can see so that might solve the problem a bit, but I don't understand yet how to efficiently code that?
Also I notice that with LOS the cars only stop when they are (almost) hitting the other car, regardless of how much LOS sight I give them. This happens when the car from the bottom has to give way to a car from the left for example.
So I thought about using families. But I couldn't figure out how to get the one that has line of sight with a car, to get that specific car to stop instead of the whole family. If any could shed any light on this traffic issue.. I'd be really grateful.
P.S. Here's a .capx sample of the situation: http://mediaconceptfactory.com/images/Traffic.capx