Przeglądaj źródła

Car Fix + Car distance

manuel.lehe 3 lat temu
rodzic
commit
a2f061004a

+ 2 - 2
Assets/Prefabs/Cars/Convertable.prefab

@@ -478,8 +478,8 @@ MonoBehaviour:
   trafficSystem: {fileID: 0}
   waypointThresh: 2.5
   raycastAnchor: {fileID: 7224479432193346459}
-  raycastLength: 5
-  raySpacing: 8
+  raycastLength: 8
+  raySpacing: 6
   raysNumber: 5
   emergencyBrakeThresh: 1.5
   slowDownThresh: 5

+ 1 - 1
Assets/Prefabs/Cars/SUV.prefab

@@ -385,7 +385,7 @@ MonoBehaviour:
   trafficSystem: {fileID: 0}
   waypointThresh: 5
   raycastAnchor: {fileID: 1865297059863583701}
-  raycastLength: 5
+  raycastLength: 8
   raySpacing: 6
   raysNumber: 5
   emergencyBrakeThresh: 3

+ 2 - 0
Assets/Scripts/TrafficSimulation/CarPool.cs

@@ -60,6 +60,8 @@ namespace TrafficSimulation{
             {
                 car.transform.LookAt(lookAt);
             }
+            VehicleAI ai = car.GetComponent<VehicleAI>();
+            ai.vehicleStatus = Status.GO;
             car.SetActive(true);
             return car;
         }