You are browsing as a guest. Sign up (or log in) to start making projects!

2h 15m 10s logged

Finally got the cars to be a little bit intelligent and traffic lights to actually work

Traffic lights

The traffic lights now enforce lane rules (cars must be on a certain lane when light is green to go to the next lane). The traffic lights are also auto generated in a bit of a “dumb” way. The traffic light just gives turns to each incoming road to go wherever they want and all other roads cannot go. Later, I might allow valid right turns, but that’s a problem for later.

Car pathfinding

Although I haven’t implemented the BFS search for the cars, given a route cars will now look ahead to the next intersection and randomly auto merge onto the lane (the cars are more likely to merge when they are closer to the intersection). This is to make sure that cars won’t all merge at the same time, which would be weird.

0
19

Comments 0

No comments yet. Be the first!