mchrbn / unity-traffic-simulation

A Unity asset that lets you easily simulate very simple traffic into your scene.
264 stars 57 forks source link

Cars crashing into each other at intersections #14

Closed EllaMaxine closed 4 years ago

EllaMaxine commented 4 years ago

I have no idea why it's happening, but the cars are constantly crashing into each other. I just opened the example scene and it's not working. Maybe someone knows why this is happening...

Desktop 2020 09 02 - 17 40 02 01_Moment(2) Desktop 2020 09 02 - 17 40 02 01_Moment(3) Desktop 2020 09 02 - 17 40 02 01_Moment

mchrbn commented 4 years ago

Do you have any error messages? Not sure if it changes anything but it seems you target platform is Android, does it work if you switch it to Windows?

EllaMaxine commented 4 years ago

I get absolutely nothing, no warnings or errors. I will attempt to change the target platform as soon as I get home. I will let you know if something changes :)

EllaMaxine commented 4 years ago

Alright, I switched to PC Standalone and they're still crashing. Also no error messages :(

mchrbn commented 4 years ago

Ahh it's because your cars layer is set to "Roads" and not to "AutonomousVehicle". Each cars (+all their children) need to have the tag and layer set to "AutonomousVehicle"

EllaMaxine commented 4 years ago

I created a new layer called "AutonomousVehicle" and set all the cars to it. Now it's working perfectly, thank you :D