소스 검색

Car Fix + Car distance

manuel.lehe 3 년 전
부모
커밋
a2f061004a
3개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      Assets/Prefabs/Cars/Convertable.prefab
  2. 1 1
      Assets/Prefabs/Cars/SUV.prefab
  3. 2 0
      Assets/Scripts/TrafficSimulation/CarPool.cs

+ 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;
         }