From 9c64b14b0bb4a6f52de5f8c3aad81d2b278d3cc4 Mon Sep 17 00:00:00 2001 From: magn9775 Date: Thu, 11 Apr 2024 13:22:39 +0200 Subject: [PATCH] cars --- .../Prefabs/Gradient/Truck.prefab | 138 ++- Assets/Prefabs/Cars.meta | 8 + Assets/Prefabs/{ => Cars}/Hotrod.prefab | 33 +- Assets/Prefabs/{ => Cars}/Hotrod.prefab.meta | 0 Assets/Prefabs/Cars/RaceCar.prefab | 480 ++++++++++ Assets/Prefabs/Cars/RaceCar.prefab.meta | 7 + Assets/Prefabs/Cars/Special Vehicles.meta | 8 + .../Cars/Special Vehicles/Truck.prefab | 824 ++++++++++++++++++ .../Cars/Special Vehicles/Truck.prefab.meta | 7 + Assets/Scenes/Racetrack mini.unity | 162 ++-- Assets/Scenes/SampleScene.unity | 277 +++--- Assets/Scripts/car control v2.cs | 8 +- 12 files changed, 1657 insertions(+), 295 deletions(-) create mode 100644 Assets/Prefabs/Cars.meta rename Assets/Prefabs/{ => Cars}/Hotrod.prefab (94%) rename Assets/Prefabs/{ => Cars}/Hotrod.prefab.meta (100%) create mode 100644 Assets/Prefabs/Cars/RaceCar.prefab create mode 100644 Assets/Prefabs/Cars/RaceCar.prefab.meta create mode 100644 Assets/Prefabs/Cars/Special Vehicles.meta create mode 100644 Assets/Prefabs/Cars/Special Vehicles/Truck.prefab create mode 100644 Assets/Prefabs/Cars/Special Vehicles/Truck.prefab.meta diff --git a/Assets/Imported Assets/Toon Vehicles/Prefabs/Gradient/Truck.prefab b/Assets/Imported Assets/Toon Vehicles/Prefabs/Gradient/Truck.prefab index e8dd435..c5b4c63 100644 --- a/Assets/Imported Assets/Toon Vehicles/Prefabs/Gradient/Truck.prefab +++ b/Assets/Imported Assets/Toon Vehicles/Prefabs/Gradient/Truck.prefab @@ -23,20 +23,15 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 56660178827423368} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 3117251021868376130} - - {fileID: 9105418207572821310} - - {fileID: 5397504010640831810} - - {fileID: 6711349735306544153} - - {fileID: 6711349735967680985} - - {fileID: 7316478121705889497} - - {fileID: 1505059117106668160} - {fileID: 9198008922950536476} m_Father: {fileID: 0} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &593917318915008664 GameObject: @@ -61,13 +56,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 593917318915008664} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: -0.886, y: 0.416, z: -3.603} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 2498577283565199141} m_Father: {fileID: 9198008922950536476} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &680427452374522066 GameObject: @@ -92,13 +88,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 680427452374522066} - m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} - m_LocalPosition: {x: 0.884, y: 0.416, z: -0.486} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: 1, z: -0, w: 0} + m_LocalPosition: {x: 0.88399744, y: 0.416, z: -1.7900041} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 8108232086755627282} - m_Father: {fileID: 778002696404243799} - m_RootOrder: 6 + m_Father: {fileID: 3117251021868376130} m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!1 &1069302755165909246 GameObject: @@ -123,9 +120,11 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1069302755165909246} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 2209154834227183545} - {fileID: 8268998506373448898} @@ -133,7 +132,6 @@ Transform: - {fileID: 2442131559638757219} - {fileID: 4398017509771339690} m_Father: {fileID: 778002696404243799} - m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1256023466650414519 GameObject: @@ -158,13 +156,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1256023466650414519} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: -0.886, y: 0.416, z: -2.707} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 1202342095031421818} m_Father: {fileID: 9198008922950536476} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1399165488388442628 GameObject: @@ -189,13 +188,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1399165488388442628} + serializedVersion: 2 m_LocalRotation: {x: -0, y: 1, z: -0, w: 0} m_LocalPosition: {x: 0.884, y: 0.416, z: -3.603} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 6761485844403348821} m_Father: {fileID: 9198008922950536476} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!1 &1407680762944220127 GameObject: @@ -220,13 +220,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1407680762944220127} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.886, y: 0.416, z: -0.486} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.88600683, y: 0.416, z: -1.7900041} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 7456776274173612313} - m_Father: {fileID: 778002696404243799} - m_RootOrder: 5 + m_Father: {fileID: 3117251021868376130} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &5925291525783052167 GameObject: @@ -251,13 +252,20 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5925291525783052167} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 1.304} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: + - {fileID: 1505059117106668160} + - {fileID: 7316478121705889497} + - {fileID: 6711349735967680985} + - {fileID: 6711349735306544153} + - {fileID: 5397504010640831810} + - {fileID: 9105418207572821310} - {fileID: 4077110527703012015} m_Father: {fileID: 778002696404243799} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &6325159700528262461 GameObject: @@ -282,13 +290,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6325159700528262461} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.886, y: 0.416, z: 3.088} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.88600683, y: 0.416, z: 1.784001} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 6094816903049228026} - m_Father: {fileID: 778002696404243799} - m_RootOrder: 1 + m_Father: {fileID: 3117251021868376130} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &6711349735306544152 GameObject: @@ -313,13 +322,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6711349735306544152} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.886, y: 0.416, z: 0.40999997} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.88600683, y: 0.416, z: -0.8939928} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 2182832316104486591} - m_Father: {fileID: 778002696404243799} - m_RootOrder: 3 + m_Father: {fileID: 3117251021868376130} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &6711349735967680984 GameObject: @@ -344,13 +354,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6711349735967680984} - m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} - m_LocalPosition: {x: 0.884, y: 0.416, z: 0.40999997} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: 1, z: -0, w: 0} + m_LocalPosition: {x: 0.88399744, y: 0.416, z: -0.8939928} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 4573069746702010658} - m_Father: {fileID: 778002696404243799} - m_RootOrder: 4 + m_Father: {fileID: 3117251021868376130} m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!1 &7228775393967082975 GameObject: @@ -375,13 +386,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7228775393967082975} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 3960930054955455484} m_Father: {fileID: 9198008922950536476} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &7247055427807917488 GameObject: @@ -406,13 +418,14 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7247055427807917488} - m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} - m_LocalPosition: {x: 0.884, y: 0.416, z: 3.085} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: 1, z: -0, w: 0} + m_LocalPosition: {x: 0.88399744, y: 0.416, z: 1.780995} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 4468106798768451719} - m_Father: {fileID: 778002696404243799} - m_RootOrder: 2 + m_Father: {fileID: 3117251021868376130} m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!1 &9221373317284348273 GameObject: @@ -437,19 +450,21 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 9221373317284348273} + serializedVersion: 2 m_LocalRotation: {x: -0, y: 1, z: -0, w: 0} m_LocalPosition: {x: 0.884, y: 0.416, z: -2.707} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: - {fileID: 1482253844856923736} m_Father: {fileID: 9198008922950536476} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!1001 &1376060215779787187 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 3230710789980511508} m_Modifications: - target: {fileID: -8679921383154817045, guid: 1a67a79317b4a0446b87301800484512, type: 3} @@ -501,6 +516,9 @@ PrefabInstance: value: BaseL2 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1a67a79317b4a0446b87301800484512, type: 3} --- !u!4 &1482253844856923736 stripped Transform: @@ -512,6 +530,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 8268998506373448898} m_Modifications: - target: {fileID: -8679921383154817045, guid: 1a67a79317b4a0446b87301800484512, type: 3} @@ -563,6 +582,9 @@ PrefabInstance: value: BaseL2 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1a67a79317b4a0446b87301800484512, type: 3} --- !u!4 &1202342095031421818 stripped Transform: @@ -574,6 +596,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 6711349735306544153} m_Modifications: - target: {fileID: -8679921383154817045, guid: 1a67a79317b4a0446b87301800484512, type: 3} @@ -625,6 +648,9 @@ PrefabInstance: value: BaseL2 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1a67a79317b4a0446b87301800484512, type: 3} --- !u!4 &2182832316104486591 stripped Transform: @@ -636,6 +662,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 2442131559638757219} m_Modifications: - target: {fileID: -8679921383154817045, guid: 1a67a79317b4a0446b87301800484512, type: 3} @@ -687,6 +714,9 @@ PrefabInstance: value: BaseL2 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1a67a79317b4a0446b87301800484512, type: 3} --- !u!4 &2498577283565199141 stripped Transform: @@ -698,6 +728,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 2209154834227183545} m_Modifications: - target: {fileID: -8679921383154817045, guid: 5d9cbdaa6fb0ad4488a4e6170ea58103, type: 3} @@ -749,6 +780,9 @@ PrefabInstance: value: TruckTrailer objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 5d9cbdaa6fb0ad4488a4e6170ea58103, type: 3} --- !u!4 &3960930054955455484 stripped Transform: @@ -760,6 +794,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 6711349735967680985} m_Modifications: - target: {fileID: -8679921383154817045, guid: 1a67a79317b4a0446b87301800484512, type: 3} @@ -811,6 +846,9 @@ PrefabInstance: value: BaseL2 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1a67a79317b4a0446b87301800484512, type: 3} --- !u!4 &4573069746702010658 stripped Transform: @@ -822,6 +860,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 5397504010640831810} m_Modifications: - target: {fileID: -8679921383154817045, guid: 4594c3e8aa6614c4ca006f77af79c7e9, type: 3} @@ -873,6 +912,9 @@ PrefabInstance: value: BaseL objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 4594c3e8aa6614c4ca006f77af79c7e9, type: 3} --- !u!4 &4468106798768451719 stripped Transform: @@ -884,6 +926,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 3117251021868376130} m_Modifications: - target: {fileID: -8679921383154817045, guid: 39c7c9d9bef76244c8820ff1d4709faf, type: 3} @@ -935,6 +978,9 @@ PrefabInstance: value: Truck objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 39c7c9d9bef76244c8820ff1d4709faf, type: 3} --- !u!4 &4077110527703012015 stripped Transform: @@ -946,6 +992,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 9105418207572821310} m_Modifications: - target: {fileID: -8679921383154817045, guid: 4594c3e8aa6614c4ca006f77af79c7e9, type: 3} @@ -997,6 +1044,9 @@ PrefabInstance: value: BaseL objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 4594c3e8aa6614c4ca006f77af79c7e9, type: 3} --- !u!4 &6094816903049228026 stripped Transform: @@ -1008,6 +1058,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 4398017509771339690} m_Modifications: - target: {fileID: -8679921383154817045, guid: 1a67a79317b4a0446b87301800484512, type: 3} @@ -1059,6 +1110,9 @@ PrefabInstance: value: BaseL2 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1a67a79317b4a0446b87301800484512, type: 3} --- !u!4 &6761485844403348821 stripped Transform: @@ -1070,6 +1124,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 7316478121705889497} m_Modifications: - target: {fileID: -8679921383154817045, guid: 1a67a79317b4a0446b87301800484512, type: 3} @@ -1121,6 +1176,9 @@ PrefabInstance: value: BaseL2 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1a67a79317b4a0446b87301800484512, type: 3} --- !u!4 &7456776274173612313 stripped Transform: @@ -1132,6 +1190,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 1505059117106668160} m_Modifications: - target: {fileID: -8679921383154817045, guid: 1a67a79317b4a0446b87301800484512, type: 3} @@ -1183,6 +1242,9 @@ PrefabInstance: value: BaseL2 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1a67a79317b4a0446b87301800484512, type: 3} --- !u!4 &8108232086755627282 stripped Transform: diff --git a/Assets/Prefabs/Cars.meta b/Assets/Prefabs/Cars.meta new file mode 100644 index 0000000..9412a6c --- /dev/null +++ b/Assets/Prefabs/Cars.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6efb9bc96965f0a47b6b1b4f25035d47 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Hotrod.prefab b/Assets/Prefabs/Cars/Hotrod.prefab similarity index 94% rename from Assets/Prefabs/Hotrod.prefab rename to Assets/Prefabs/Cars/Hotrod.prefab index 230d419..c42a590 100644 --- a/Assets/Prefabs/Hotrod.prefab +++ b/Assets/Prefabs/Cars/Hotrod.prefab @@ -10,7 +10,6 @@ GameObject: m_Component: - component: {fileID: 5420764024659664985} - component: {fileID: 3239213433477781764} - - component: {fileID: 1857703685905104433} - component: {fileID: 5418785709807611868} m_Layer: 0 m_Name: Hotrod @@ -29,7 +28,7 @@ Transform: serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 3.8524709, y: -2.92524, z: -4.392884} - m_LocalScale: {x: 0.125, y: 0.125, z: 0.125} + m_LocalScale: {x: 0.25, y: 0.25, z: 0.25} m_ConstrainProportionsScale: 0 m_Children: - {fileID: 7953198523918571078} @@ -62,7 +61,7 @@ Rigidbody: m_Interpolate: 0 m_Constraints: 0 m_CollisionDetection: 1 ---- !u!114 &1857703685905104433 +--- !u!114 &5418785709807611868 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -71,30 +70,16 @@ MonoBehaviour: m_GameObject: {fileID: 5711380006811689493} m_Enabled: 0 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a23c7d66d3ff94847a946cf7b30ca1b7, type: 3} - m_Name: - m_EditorClassIdentifier: - motorTorque: 2000 - maxSpeed: 50 - steeringRange: 30 ---- !u!114 &5418785709807611868 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5711380006811689493} - m_Enabled: 1 - m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 58d3a2623a4164b4bb25683edc176b03, type: 3} m_Name: m_EditorClassIdentifier: - motorTorque: 40 - brakeTorque: 40 - maxSpeed: 40 - steeringRange: 10 - steeringRangeAtMaxSpeed: 10 - autoBrake: 20 + motorTorque: 300 + brakeTorque: 500 + maxSpeed: 400 + steeringRange: 9 + steeringRangeAtMaxSpeed: 7 + autoBrake: 100 + rigidBody: {fileID: 0} --- !u!1001 &6613855157239500655 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Hotrod.prefab.meta b/Assets/Prefabs/Cars/Hotrod.prefab.meta similarity index 100% rename from Assets/Prefabs/Hotrod.prefab.meta rename to Assets/Prefabs/Cars/Hotrod.prefab.meta diff --git a/Assets/Prefabs/Cars/RaceCar.prefab b/Assets/Prefabs/Cars/RaceCar.prefab new file mode 100644 index 0000000..29335c2 --- /dev/null +++ b/Assets/Prefabs/Cars/RaceCar.prefab @@ -0,0 +1,480 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &958898810854575637 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4521100388491296405} + - component: {fileID: 133451452503184363} + m_Layer: 0 + m_Name: Wheel_FL_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4521100388491296405 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 958898810854575637} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.886, y: 0.416, z: 1.299} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 7633494796128260512} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!146 &133451452503184363 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 958898810854575637} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.4200084 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 1 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 1 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!1 &1291889888039102550 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6017908800610419054} + - component: {fileID: 269437700598189008} + m_Layer: 0 + m_Name: Wheel_BL_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6017908800610419054 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1291889888039102550} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.886, y: 0.416, z: -1.295} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 7633494796128260512} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!146 &269437700598189008 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1291889888039102550} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.4200084 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 2 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 2 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!1 &2253268385440341370 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5644291528752137612} + - component: {fileID: 3083305290984775741} + m_Layer: 0 + m_Name: Wheel_FR_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5644291528752137612 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2253268385440341370} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} + m_LocalPosition: {x: 0.884, y: 0.416, z: 1.2960001} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 7633494796128260512} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} +--- !u!146 &3083305290984775741 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2253268385440341370} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.4200084 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 1 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 1 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!1 &4599203270359476959 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4284629084863024120} + - component: {fileID: 5022958917504388741} + - component: {fileID: 2357909291779874818} + m_Layer: 0 + m_Name: RaceCar + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4284629084863024120 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4599203270359476959} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -3.3487434, y: 1.2610518, z: -2.3607507} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 7633494796128260512} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!54 &5022958917504388741 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4599203270359476959} + serializedVersion: 4 + m_Mass: 1000 + m_Drag: 0.1 + m_AngularDrag: 0 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 1 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!114 &2357909291779874818 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4599203270359476959} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 58d3a2623a4164b4bb25683edc176b03, type: 3} + m_Name: + m_EditorClassIdentifier: + motorTorque: 2000 + brakeTorque: 2000 + maxSpeed: 20 + steeringRange: 30 + steeringRangeAtMaxSpeed: 10 + autoBrake: 0 +--- !u!1 &6494610058044814199 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5264853234930823133} + - component: {fileID: 4541059454383419935} + m_Layer: 0 + m_Name: Wheel_BR_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5264853234930823133 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6494610058044814199} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} + m_LocalPosition: {x: 0.884, y: 0.416, z: -1.295} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 7633494796128260512} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} +--- !u!146 &4541059454383419935 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6494610058044814199} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.4200084 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 2 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 2 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!1001 &8038549520670359769 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 4284629084863024120} + m_Modifications: + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalScale.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalScale.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalScale.z + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalPosition.x + value: -1 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalPosition.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalPosition.z + value: 3.5 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 892975331452299942, guid: a34d17982603e394b85abe66729deb02, type: 3} + propertyPath: m_Name + value: Bolide + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: + - targetCorrespondingSourceObject: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + insertIndex: -1 + addedObject: {fileID: 5644291528752137612} + - targetCorrespondingSourceObject: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + insertIndex: -1 + addedObject: {fileID: 6017908800610419054} + - targetCorrespondingSourceObject: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + insertIndex: -1 + addedObject: {fileID: 4521100388491296405} + - targetCorrespondingSourceObject: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + insertIndex: -1 + addedObject: {fileID: 5264853234930823133} + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8197544783364443354, guid: a34d17982603e394b85abe66729deb02, type: 3} + insertIndex: -1 + addedObject: {fileID: 2620309212689769861} + m_SourcePrefab: {fileID: 100100000, guid: a34d17982603e394b85abe66729deb02, type: 3} +--- !u!1 &2183451691536010243 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 8197544783364443354, guid: a34d17982603e394b85abe66729deb02, type: 3} + m_PrefabInstance: {fileID: 8038549520670359769} + m_PrefabAsset: {fileID: 0} +--- !u!65 &2620309212689769861 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2183451691536010243} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 1 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 2.0421307, y: 1.5047604, z: 4.305852} + m_Center: {x: 0, y: 0.81503993, z: 0.21946335} +--- !u!4 &7633494796128260512 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 459707049714192761, guid: a34d17982603e394b85abe66729deb02, type: 3} + m_PrefabInstance: {fileID: 8038549520670359769} + m_PrefabAsset: {fileID: 0} diff --git a/Assets/Prefabs/Cars/RaceCar.prefab.meta b/Assets/Prefabs/Cars/RaceCar.prefab.meta new file mode 100644 index 0000000..77b0c77 --- /dev/null +++ b/Assets/Prefabs/Cars/RaceCar.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: d5caff8338f793c4eb4490cc52546faf +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Cars/Special Vehicles.meta b/Assets/Prefabs/Cars/Special Vehicles.meta new file mode 100644 index 0000000..28099a9 --- /dev/null +++ b/Assets/Prefabs/Cars/Special Vehicles.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0a39d3ed6d91e2144865bf0efe736448 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Cars/Special Vehicles/Truck.prefab b/Assets/Prefabs/Cars/Special Vehicles/Truck.prefab new file mode 100644 index 0000000..0c58446 --- /dev/null +++ b/Assets/Prefabs/Cars/Special Vehicles/Truck.prefab @@ -0,0 +1,824 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &708701863880366179 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8639376509518563152} + - component: {fileID: 2364172432862723658} + - component: {fileID: 2246115136462468528} + m_Layer: 0 + m_Name: Wheel_B1L_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &8639376509518563152 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 708701863880366179} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.88600683, y: 0.416, z: -0.8939928} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 5565175454309397639} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!146 &2364172432862723658 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 708701863880366179} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.419985 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 2 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 2 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!114 &2246115136462468528 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 708701863880366179} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9901c050a200da94bbc65da2891b7708, type: 3} + m_Name: + m_EditorClassIdentifier: + wheelModel: {fileID: 8661320057701481082} + WheelCollider: {fileID: 0} + steerable: 0 + motorized: 1 +--- !u!1 &1310708806575060860 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7488514304554101476} + - component: {fileID: 2724714051903115820} + - component: {fileID: 5400846028041770946} + m_Layer: 0 + m_Name: Wheel_FL_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7488514304554101476 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1310708806575060860} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.88600683, y: 0.416, z: 1.784001} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 5565175454309397639} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!146 &2724714051903115820 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1310708806575060860} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.419985 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 1 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 1 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!114 &5400846028041770946 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1310708806575060860} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9901c050a200da94bbc65da2891b7708, type: 3} + m_Name: + m_EditorClassIdentifier: + wheelModel: {fileID: 3669564466693814847} + WheelCollider: {fileID: 0} + steerable: 1 + motorized: 0 +--- !u!1 &1494922127251440071 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1179980103025040877} + - component: {fileID: 2069003514662564439} + - component: {fileID: 7927138850846266789} + m_Layer: 0 + m_Name: Wheel_B2R_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1179980103025040877 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1494922127251440071} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: 1, z: -0, w: 0} + m_LocalPosition: {x: 0.88399744, y: 0.416, z: -1.7900041} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 5565175454309397639} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} +--- !u!146 &2069003514662564439 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1494922127251440071} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.419985 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 2 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 2 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!114 &7927138850846266789 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1494922127251440071} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9901c050a200da94bbc65da2891b7708, type: 3} + m_Name: + m_EditorClassIdentifier: + wheelModel: {fileID: 1657307901487465943} + WheelCollider: {fileID: 0} + steerable: 0 + motorized: 0 +--- !u!1 &2077131626287278788 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 223652652588761002} + - component: {fileID: 2505505705192865268} + - component: {fileID: 2161691411765332329} + m_Layer: 0 + m_Name: Wheel_FR_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &223652652588761002 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2077131626287278788} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: 1, z: -0, w: 0} + m_LocalPosition: {x: 0.88399744, y: 0.416, z: 1.780995} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 5565175454309397639} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} +--- !u!146 &2505505705192865268 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2077131626287278788} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.419985 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 1 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 1 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!114 &2161691411765332329 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2077131626287278788} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9901c050a200da94bbc65da2891b7708, type: 3} + m_Name: + m_EditorClassIdentifier: + wheelModel: {fileID: 6374895485408011330} + WheelCollider: {fileID: 0} + steerable: 1 + motorized: 0 +--- !u!1 &4635384822206797428 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2512004550964339037} + - component: {fileID: 5061132905868936189} + m_Layer: 0 + m_Name: Truck + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2512004550964339037 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4635384822206797428} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1.2716805, y: 1.4950532, z: 3.6106765} + m_LocalScale: {x: 0.25, y: 0.25, z: 0.25} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 7833395319996744082} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &5061132905868936189 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4635384822206797428} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 58d3a2623a4164b4bb25683edc176b03, type: 3} + m_Name: + m_EditorClassIdentifier: + motorTorque: 250 + brakeTorque: 500 + maxSpeed: 100 + steeringRange: 9 + steeringRangeAtMaxSpeed: 7 + autoBrake: 100 + rigidBody: {fileID: 768543784266837145} +--- !u!1 &5571232120048658310 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 72368946398204477} + - component: {fileID: 8427123004766533763} + - component: {fileID: 6022638809109814625} + m_Layer: 0 + m_Name: Wheel_B2L_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &72368946398204477 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5571232120048658310} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.88600683, y: 0.416, z: -1.7900041} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 5565175454309397639} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!146 &8427123004766533763 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5571232120048658310} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.419985 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 2 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 2 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!114 &6022638809109814625 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5571232120048658310} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9901c050a200da94bbc65da2891b7708, type: 3} + m_Name: + m_EditorClassIdentifier: + wheelModel: {fileID: 72620946498274780} + WheelCollider: {fileID: 0} + steerable: 0 + motorized: 0 +--- !u!1 &6720340383318382130 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6558887870509783603} + - component: {fileID: 5224662074486390016} + - component: {fileID: 1302364595629898969} + m_Layer: 0 + m_Name: Wheel_B1R_Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6558887870509783603 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6720340383318382130} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: 1, z: -0, w: 0} + m_LocalPosition: {x: 0.88399744, y: 0.416, z: -0.8939928} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 5565175454309397639} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} +--- !u!146 &5224662074486390016 +WheelCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6720340383318382130} + serializedVersion: 2 + m_Center: {x: 0, y: 0, z: 0} + m_Radius: 0.419985 + m_SuspensionSpring: + spring: 35000 + damper: 1500 + targetPosition: 1 + m_SuspensionDistance: 0.25 + m_ForceAppPointDistance: 0 + m_Mass: 80 + m_WheelDampingRate: 0.01 + m_ForwardFriction: + m_ExtremumSlip: 0.4 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.8 + m_AsymptoteValue: 0.5 + m_Stiffness: 2 + m_SidewaysFriction: + m_ExtremumSlip: 0.2 + m_ExtremumValue: 1 + m_AsymptoteSlip: 0.5 + m_AsymptoteValue: 0.75 + m_Stiffness: 2 + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_Enabled: 1 + m_ProvidesContacts: 0 +--- !u!114 &1302364595629898969 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6720340383318382130} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9901c050a200da94bbc65da2891b7708, type: 3} + m_Name: + m_EditorClassIdentifier: + wheelModel: {fileID: 6417352848709246439} + WheelCollider: {fileID: 0} + steerable: 0 + motorized: 1 +--- !u!1001 &7384156122252678341 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 2512004550964339037} + m_Modifications: + - target: {fileID: 56660178827423368, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_Name + value: Truck + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9198008922950536476, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + propertyPath: m_LocalPosition.z + value: 0.25 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: + - targetCorrespondingSourceObject: {fileID: 3117251021868376130, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: 6 + addedObject: {fileID: 7488514304554101476} + - targetCorrespondingSourceObject: {fileID: 3117251021868376130, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: 7 + addedObject: {fileID: 223652652588761002} + - targetCorrespondingSourceObject: {fileID: 3117251021868376130, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: 8 + addedObject: {fileID: 8639376509518563152} + - targetCorrespondingSourceObject: {fileID: 3117251021868376130, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: 9 + addedObject: {fileID: 6558887870509783603} + - targetCorrespondingSourceObject: {fileID: 3117251021868376130, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: 10 + addedObject: {fileID: 72368946398204477} + - targetCorrespondingSourceObject: {fileID: 3117251021868376130, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: 11 + addedObject: {fileID: 1179980103025040877} + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 5925291525783052167, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: -1 + addedObject: {fileID: 768543784266837145} + - targetCorrespondingSourceObject: {fileID: 3737740029801138197, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: -1 + addedObject: {fileID: 5574561180280606995} + - targetCorrespondingSourceObject: {fileID: 1069302755165909246, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: -1 + addedObject: {fileID: 8455621397692842305} + - targetCorrespondingSourceObject: {fileID: 1069302755165909246, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + insertIndex: -1 + addedObject: {fileID: 3446742483358498982} + m_SourcePrefab: {fileID: 100100000, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} +--- !u!4 &72620946498274780 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 7456776274173612313, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!4 &1657307901487465943 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 8108232086755627282, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!4 &3669564466693814847 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 6094816903049228026, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!1 &3765879968547720002 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 5925291525783052167, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!54 &768543784266837145 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3765879968547720002} + serializedVersion: 4 + m_Mass: 2000 + m_Drag: 0.1 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 1 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!4 &5565175454309397639 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 3117251021868376130, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!1 &6171853565677247696 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 3737740029801138197, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!65 &5574561180280606995 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6171853565677247696} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 1 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 2.2722697, y: 3.2068045, z: 4.813593} + m_Center: {x: 0.0000009536743, y: 1.8028914, z: -0.05067861} +--- !u!4 &6374895485408011330 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 4468106798768451719, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!4 &6417352848709246439 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 4573069746702010658, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!1 &7543291806036206651 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1069302755165909246, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!65 &8455621397692842305 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7543291806036206651} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 1 + m_Enabled: 0 + serializedVersion: 3 + m_Size: {x: 2, y: 2.5, z: 4.5} + m_Center: {x: 0, y: 1.75, z: -1.925} +--- !u!54 &3446742483358498982 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7543291806036206651} + serializedVersion: 4 + m_Mass: 5000 + m_Drag: 0.1 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 1 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!4 &7833395319996744082 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 778002696404243799, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} +--- !u!4 &8661320057701481082 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 2182832316104486591, guid: 81ef0bb38212721459747dff8ed743c4, type: 3} + m_PrefabInstance: {fileID: 7384156122252678341} + m_PrefabAsset: {fileID: 0} diff --git a/Assets/Prefabs/Cars/Special Vehicles/Truck.prefab.meta b/Assets/Prefabs/Cars/Special Vehicles/Truck.prefab.meta new file mode 100644 index 0000000..a9dbaa0 --- /dev/null +++ b/Assets/Prefabs/Cars/Special Vehicles/Truck.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e7761d102bda0a1489c474fc5bd35a47 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Racetrack mini.unity b/Assets/Scenes/Racetrack mini.unity index afa9cbe..b647f09 100644 --- a/Assets/Scenes/Racetrack mini.unity +++ b/Assets/Scenes/Racetrack mini.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} + m_IndirectSpecularColor: {r: 0.44657826, g: 0.49641263, b: 0.57481676, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -603,6 +603,11 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3} +--- !u!4 &453987798 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + m_PrefabInstance: {fileID: 1495114367} + m_PrefabAsset: {fileID: 0} --- !u!1001 &464917649 PrefabInstance: m_ObjectHideFlags: 0 @@ -2116,66 +2121,6 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 0} m_Modifications: - - target: {fileID: 167507413025944627, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: carTransform - value: - objectReference: {fileID: 1673238739} - - target: {fileID: 716054942236377294, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: carTransform - value: - objectReference: {fileID: 1673238739} - - target: {fileID: 1214771501244313199, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: steerable - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 1214771501244313199, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: carTransform - value: - objectReference: {fileID: 1673238739} - - target: {fileID: 1708831625890644937, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: isFR - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 1708831625890644937, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: carTransform - value: - objectReference: {fileID: 1673238739} - - target: {fileID: 5418785709807611868, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: maxSpeed - value: 400 - objectReference: {fileID: 0} - - target: {fileID: 5418785709807611868, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: autoBrake - value: 100 - objectReference: {fileID: 0} - - target: {fileID: 5418785709807611868, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: brakeTorque - value: 500 - objectReference: {fileID: 0} - - target: {fileID: 5418785709807611868, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: motorTorque - value: 300 - objectReference: {fileID: 0} - - target: {fileID: 5418785709807611868, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: steeringRange - value: 9 - objectReference: {fileID: 0} - - target: {fileID: 5418785709807611868, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: steeringRangeAtMaxSpeed - value: 7 - objectReference: {fileID: 0} - - target: {fileID: 5420764024659664985, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: m_LocalScale.x - value: 0.25 - objectReference: {fileID: 0} - - target: {fileID: 5420764024659664985, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: m_LocalScale.y - value: 0.25 - objectReference: {fileID: 0} - - target: {fileID: 5420764024659664985, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: m_LocalScale.z - value: 0.25 - objectReference: {fileID: 0} - target: {fileID: 5420764024659664985, guid: 5851f609a58dc884a99030da0105c6db, type: 3} propertyPath: m_LocalPosition.x value: 37.1 @@ -2220,18 +2165,6 @@ PrefabInstance: propertyPath: m_Name value: Hotrod objectReference: {fileID: 0} - - target: {fileID: 7953198523918571078, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7953198523918571078, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7953198523918571078, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] @@ -2361,6 +2294,63 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 3b4743a43e04ed145b531ab0f1ae828b, type: 3} +--- !u!1001 &1495114367 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalPosition.x + value: 37 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalPosition.y + value: 0.337 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalPosition.z + value: -38 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4635384822206797428, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_Name + value: Truck + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} --- !u!1001 &1507679691 PrefabInstance: m_ObjectHideFlags: 0 @@ -2533,15 +2523,15 @@ PrefabInstance: m_Modifications: - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.x - value: 39.615807 + value: 39.51581 objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.y - value: -1.0605093 + value: -0.78350925 objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.z - value: -32.938812 + value: -32.558807 objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.w @@ -2549,7 +2539,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.x - value: 0.24253564 + value: 0.24253565 objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.y @@ -2642,22 +2632,22 @@ PrefabInstance: - target: {fileID: 8858152487650577344, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_Follow value: - objectReference: {fileID: 1673238739} + objectReference: {fileID: 453987798} - target: {fileID: 8858152487650577344, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LookAt value: - objectReference: {fileID: 1673238739} + objectReference: {fileID: 453987798} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.x - value: 39.615807 + value: 39.51581 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.y - value: -1.0605093 + value: -0.78350925 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.z - value: -32.938812 + value: -32.558807 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.w @@ -2665,7 +2655,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.x - value: 0.24253564 + value: 0.24253565 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.y @@ -2889,11 +2879,6 @@ Transform: m_CorrespondingSourceObject: {fileID: 7862065244346366242, guid: 3b4743a43e04ed145b531ab0f1ae828b, type: 3} m_PrefabInstance: {fileID: 6518102369135546281} m_PrefabAsset: {fileID: 0} ---- !u!4 &1673238739 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 5420764024659664985, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - m_PrefabInstance: {fileID: 1427960684} - m_PrefabAsset: {fileID: 0} --- !u!4 &1699693349 stripped Transform: m_CorrespondingSourceObject: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3} @@ -3808,3 +3793,4 @@ SceneRoots: - {fileID: 1770047257} - {fileID: 1527417141} - {fileID: 1427960684} + - {fileID: 1495114367} diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index 0c7415c..80111bf 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -123,6 +123,11 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!4 &83369034 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + m_PrefabInstance: {fileID: 7444232797940731829} + m_PrefabAsset: {fileID: 0} --- !u!1 &705507993 GameObject: m_ObjectHideFlags: 0 @@ -217,87 +222,6 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &1201679266 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 4258781391370674817, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - m_PrefabInstance: {fileID: 1235630211} - m_PrefabAsset: {fileID: 0} ---- !u!114 &1201679269 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1201679266} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a23c7d66d3ff94847a946cf7b30ca1b7, type: 3} - m_Name: - m_EditorClassIdentifier: - motorTorque: 2000 - maxSpeed: 20 - steeringRange: 30 ---- !u!1001 &1235630211 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: 4258781391370674817, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_Name - value: Ford - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalPosition.y - value: 1.8 - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5049018613629602103, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: - - {fileID: 4562493253198073265, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: - - targetCorrespondingSourceObject: {fileID: 4258781391370674817, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} - insertIndex: -1 - addedObject: {fileID: 1201679269} - m_SourcePrefab: {fileID: 100100000, guid: 77e4cd38c4994de4f9312bea83b75104, type: 3} --- !u!1 &1897464303 stripped GameObject: m_CorrespondingSourceObject: {fileID: 4840733166066636179, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} @@ -421,11 +345,6 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!4 &1983670534 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 5751617850336568147, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - m_PrefabInstance: {fileID: 1328367594557032345} - m_PrefabAsset: {fileID: 0} --- !u!1 &2026056263 GameObject: m_ObjectHideFlags: 0 @@ -478,10 +397,6 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 0} m_Modifications: - - target: {fileID: 1857703685905104433, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - propertyPath: m_Enabled - value: 0 - objectReference: {fileID: 0} - target: {fileID: 5420764024659664985, guid: 5851f609a58dc884a99030da0105c6db, type: 3} propertyPath: m_LocalPosition.x value: -4.25 @@ -529,47 +444,8 @@ PrefabInstance: m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] - m_AddedComponents: - - targetCorrespondingSourceObject: {fileID: 5711380006811689493, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - insertIndex: -1 - addedObject: {fileID: 1328367594557032350} + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 5851f609a58dc884a99030da0105c6db, type: 3} ---- !u!1 &1328367594557032346 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 5711380006811689493, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - m_PrefabInstance: {fileID: 1328367594557032345} - m_PrefabAsset: {fileID: 0} ---- !u!146 &1328367594557032347 stripped -WheelCollider: - m_CorrespondingSourceObject: {fileID: 6619084378601959143, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - m_PrefabInstance: {fileID: 1328367594557032345} - m_PrefabAsset: {fileID: 0} ---- !u!146 &1328367594557032348 stripped -WheelCollider: - m_CorrespondingSourceObject: {fileID: 1553392025741153767, guid: 5851f609a58dc884a99030da0105c6db, type: 3} - m_PrefabInstance: {fileID: 1328367594557032345} - m_PrefabAsset: {fileID: 0} ---- !u!114 &1328367594557032350 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1328367594557032346} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8c9672ffa7e21bf41b27f35da94be659, type: 3} - m_Name: - m_EditorClassIdentifier: - InputCtrl: {fileID: 2026056265} - WheelColliders: - - {fileID: 1328367594557032348} - - {fileID: 1328367594557032347} - Wheels: [] - CenterOfMass: {fileID: 1983670534} - Force: 1000 - Angle: 35 - BrakeForce: 500 --- !u!1001 &4212961364147142189 PrefabInstance: m_ObjectHideFlags: 0 @@ -580,23 +456,23 @@ PrefabInstance: m_Modifications: - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.x - value: -1.7341924 + value: 1.2441272 objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.y - value: 2.8294907 + value: -0.67545605 objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.z - value: -3.0588093 + value: 7.5518694 objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.w - value: 0.9907348 + value: 0.9938837 objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.x - value: 0.13581057 + value: 0.11043153 objectReference: {fileID: 0} - target: {fileID: 320316327550477191, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.y @@ -677,34 +553,34 @@ PrefabInstance: - target: {fileID: 8858152487650577344, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_Follow value: - objectReference: {fileID: 0} + objectReference: {fileID: 83369034} - target: {fileID: 8858152487650577344, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LookAt value: - objectReference: {fileID: 0} + objectReference: {fileID: 83369034} - target: {fileID: 8858152487650577344, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_Lens.FieldOfView value: 60 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.x - value: -1.7341924 + value: 1.2441272 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.y - value: 2.8294907 + value: -0.67545605 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalPosition.z - value: -3.0588093 + value: 7.5518694 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.w - value: 0.9907348 + value: 0.9938837 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.x - value: 0.13581057 + value: 0.11043153 objectReference: {fileID: 0} - target: {fileID: 8890610309520933432, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} propertyPath: m_LocalRotation.y @@ -723,6 +599,120 @@ PrefabInstance: insertIndex: -1 addedObject: {fileID: 1897464309} m_SourcePrefab: {fileID: 100100000, guid: 80c5f8bcfe7e033419638b39d9a278c4, type: 3} +--- !u!1001 &6862354766440944207 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalPosition.x + value: -3.3487434 + objectReference: {fileID: 0} + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalPosition.y + value: 2.2610517 + objectReference: {fileID: 0} + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalPosition.z + value: -2.3607507 + objectReference: {fileID: 0} + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4284629084863024120, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4599203270359476959, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} + propertyPath: m_Name + value: RaceCar + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: d5caff8338f793c4eb4490cc52546faf, type: 3} +--- !u!1001 &7444232797940731829 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalPosition.x + value: -1.2716805 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalPosition.y + value: 1.4950532 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalPosition.z + value: 3.6106765 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2512004550964339037, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4635384822206797428, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} + propertyPath: m_Name + value: Truck + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: e7761d102bda0a1489c474fc5bd35a47, type: 3} --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 @@ -731,5 +721,6 @@ SceneRoots: - {fileID: 2026056264} - {fileID: 1915174281} - {fileID: 4212961364147142189} - - {fileID: 1235630211} - {fileID: 1328367594557032345} + - {fileID: 6862354766440944207} + - {fileID: 7444232797940731829} diff --git a/Assets/Scripts/car control v2.cs b/Assets/Scripts/car control v2.cs index f7a417a..524627a 100644 --- a/Assets/Scripts/car control v2.cs +++ b/Assets/Scripts/car control v2.cs @@ -13,12 +13,16 @@ public class carcontrolv2 : MonoBehaviour public float autoBrake; WheelControl[] wheels; - Rigidbody rigidBody; + public Rigidbody rigidBody; // Start is called before the first frame update void Start() { - rigidBody = GetComponent(); + if (rigidBody == null) + { + rigidBody = GetComponent (); + } + // Find all child GameObjects that have the WheelControl script attached wheels = GetComponentsInChildren();