A very simple version of the traffic network system is presentable now

Unity3D Video Game Development MiniTrue

After creating the road system, now the traffic system has to be programmed.

First conceptual drawings for the traffic system:

traffic system

The goal was to create a self-connecting traffic network, which should work for left- and right-hand traffic. Everything went fine until the cars had to drive around corners. But a little bit later (and with some vector calculation) this also works very well.

A view of the transport system in the editor. The red squares and red lines represent the center lines of the street. traffic system