dears,
This is the unity version I’m using, what is the best way to add a traffic system, I’ve followed many tutorials but none of them worked.
anyone can help
It depends on how complex you’re looking to go. If you’re not interested in coding your own, there’s a bunch of systems available on the asset store that do this.
That said, I would go with a spline based approach using Unity’s built-in Spline component. Cars are mostly faked in video games where they don’t use actual physics to get around (until there’s a crash, since you turn them on then), but instead follow “lane” splines setup around the city. Samyam had an interesting approach for cars in this video https://www.youtube.com/watch?v=CqamCl_5Xe4 where she manually assigned waypoints to each car that they’d follow. It’s not realistic, but in an arcade style game where cars and NPCs are set-dressing, it’s easy to not notice simple AI like that.
