Merge branch 'master' of ooftooft.net:Racesm
# Conflicts: # Assets/ML-Agents/Timers/Car Customization_timers.json # Assets/ML-Agents/Timers/Racetrack mini_timers.json
This commit is contained in:
BIN
Assets/Brains/BusTrack2.onnx
Normal file
BIN
Assets/Brains/BusTrack2.onnx
Normal file
Binary file not shown.
16
Assets/Brains/BusTrack2.onnx.meta
Normal file
16
Assets/Brains/BusTrack2.onnx.meta
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 65640c7becf842642a6285ff1d191eb7
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3}
|
||||||
|
optimizeModel: 1
|
||||||
|
forceArbitraryBatchSize: 1
|
||||||
|
treatErrorsAsWarnings: 0
|
||||||
|
importMode: 1
|
||||||
|
weightsTypeMode: 0
|
||||||
|
activationTypeMode: 0
|
||||||
BIN
Assets/Brains/HotrodTrack2.onnx
Normal file
BIN
Assets/Brains/HotrodTrack2.onnx
Normal file
Binary file not shown.
16
Assets/Brains/HotrodTrack2.onnx.meta
Normal file
16
Assets/Brains/HotrodTrack2.onnx.meta
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 88f4c7b886ce6da40a6b4208019aa5b9
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3}
|
||||||
|
optimizeModel: 1
|
||||||
|
forceArbitraryBatchSize: 1
|
||||||
|
treatErrorsAsWarnings: 0
|
||||||
|
importMode: 1
|
||||||
|
weightsTypeMode: 0
|
||||||
|
activationTypeMode: 0
|
||||||
BIN
Assets/Brains/HotrodTrack3.onnx
Normal file
BIN
Assets/Brains/HotrodTrack3.onnx
Normal file
Binary file not shown.
16
Assets/Brains/HotrodTrack3.onnx.meta
Normal file
16
Assets/Brains/HotrodTrack3.onnx.meta
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ad4d782d73910164f94de72281c6c3b2
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3}
|
||||||
|
optimizeModel: 1
|
||||||
|
forceArbitraryBatchSize: 1
|
||||||
|
treatErrorsAsWarnings: 0
|
||||||
|
importMode: 1
|
||||||
|
weightsTypeMode: 0
|
||||||
|
activationTypeMode: 0
|
||||||
BIN
Assets/Brains/IcecreamTrack2.onnx
Normal file
BIN
Assets/Brains/IcecreamTrack2.onnx
Normal file
Binary file not shown.
16
Assets/Brains/IcecreamTrack2.onnx.meta
Normal file
16
Assets/Brains/IcecreamTrack2.onnx.meta
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b598fcfd9f281574597f9e8458bcf63b
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3}
|
||||||
|
optimizeModel: 1
|
||||||
|
forceArbitraryBatchSize: 1
|
||||||
|
treatErrorsAsWarnings: 0
|
||||||
|
importMode: 1
|
||||||
|
weightsTypeMode: 0
|
||||||
|
activationTypeMode: 0
|
||||||
BIN
Assets/Brains/StreetTrack2.onnx
Normal file
BIN
Assets/Brains/StreetTrack2.onnx
Normal file
Binary file not shown.
16
Assets/Brains/StreetTrack2.onnx.meta
Normal file
16
Assets/Brains/StreetTrack2.onnx.meta
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ab5259a2a6f516d4ab10dbac1ec53404
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3}
|
||||||
|
optimizeModel: 1
|
||||||
|
forceArbitraryBatchSize: 1
|
||||||
|
treatErrorsAsWarnings: 0
|
||||||
|
importMode: 1
|
||||||
|
weightsTypeMode: 0
|
||||||
|
activationTypeMode: 0
|
||||||
@@ -1758,7 +1758,7 @@ Transform:
|
|||||||
m_GameObject: {fileID: 153506}
|
m_GameObject: {fileID: 153506}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -1493.103, y: 0, z: 100.35948}
|
m_LocalPosition: {x: -3.0904744e+38, y: 0, z: 1.6675079e+37}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 58f7e79a87c79824597746e8c1bfe400
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f58d25b9e504a4f41ab4a71cf87c1845
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1 +1,5 @@
|
|||||||
{"count":1,"self":13.476543999999999,"total":13.645305599999999,"children":{"InitializeActuators":{"count":8,"self":0.0005032,"total":0.0005032,"children":null},"InitializeSensors":{"count":8,"self":0.0025123,"total":0.0025123,"children":null},"AgentSendState":{"count":391,"self":0.0242956,"total":0.0414863,"children":{"CollectObservations":{"count":632,"self":0.0075606,"total":0.0075606,"children":null},"WriteActionMask":{"count":632,"self":0.0010004,"total":0.0010004,"children":null},"RequestDecision":{"count":632,"self":0.0086296999999999988,"total":0.0086296999999999988,"children":null}}},"DecideAction":{"count":391,"self":0.10208819999999999,"total":0.105127,"children":{"RayPerceptionSensor.Perceive":{"count":1264,"self":0.0030388,"total":0.0030388,"children":null}}},"AgentAct":{"count":391,"self":0.0191332,"total":0.0191332,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1714114459","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\noahk\\Documents\\Unity projects\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-noahk -hubSessionId a6f45e0e-41b6-4c96-a70e-ec8e10ca5aa9 -accessToken LhF-MiZYoHmiI2p1_6JvQZvJ6QUPd4VyLbrTbhNHTT8005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"Car Customization","end_time_seconds":"1714114473"}}
|
<<<<<<< HEAD
|
||||||
|
{"count":1,"self":13.476543999999999,"total":13.645305599999999,"children":{"InitializeActuators":{"count":8,"self":0.0005032,"total":0.0005032,"children":null},"InitializeSensors":{"count":8,"self":0.0025123,"total":0.0025123,"children":null},"AgentSendState":{"count":391,"self":0.0242956,"total":0.0414863,"children":{"CollectObservations":{"count":632,"self":0.0075606,"total":0.0075606,"children":null},"WriteActionMask":{"count":632,"self":0.0010004,"total":0.0010004,"children":null},"RequestDecision":{"count":632,"self":0.0086296999999999988,"total":0.0086296999999999988,"children":null}}},"DecideAction":{"count":391,"self":0.10208819999999999,"total":0.105127,"children":{"RayPerceptionSensor.Perceive":{"count":1264,"self":0.0030388,"total":0.0030388,"children":null}}},"AgentAct":{"count":391,"self":0.0191332,"total":0.0191332,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1714114459","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\noahk\\Documents\\Unity projects\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-noahk -hubSessionId a6f45e0e-41b6-4c96-a70e-ec8e10ca5aa9 -accessToken LhF-MiZYoHmiI2p1_6JvQZvJ6QUPd4VyLbrTbhNHTT8005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"Car Customization","end_time_seconds":"1714114473"}}
|
||||||
|
=======
|
||||||
|
{"count":1,"self":191.1582336,"total":214.6096891,"children":{"InitializeActuators":{"count":8,"self":0.0029917999999999998,"total":0.0029917999999999998,"children":null},"InitializeSensors":{"count":8,"self":0.0019947999999999997,"total":0.0019947999999999997,"children":null},"AgentSendState":{"count":9278,"self":1.9034208,"total":2.3614832999999997,"children":{"CollectObservations":{"count":14848,"self":0.3052661,"total":0.3052661,"children":null},"WriteActionMask":{"count":14848,"self":0.0486514,"total":0.0486514,"children":null},"RequestDecision":{"count":14848,"self":0.1041449,"total":0.1041449,"children":null}}},"DecideAction":{"count":9278,"self":19.2360288,"total":19.564182199999998,"children":{"RayPerceptionSensor.Perceive":{"count":29696,"self":0.3281535,"total":0.3281535,"children":null}}},"AgentAct":{"count":9278,"self":1.5208016,"total":1.5208016,"children":null}},"gauges":{"Benson Track2.CumulativeReward":{"count":46,"max":25.6652412,"min":-1.77465284,"runningAverage":9.082785,"value":-0.111637853,"weightedAverage":8.317724}},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1714114589","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\Magnus\\Desktop\\Ny unityting\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-Magnus -hubSessionId 8c17471b-7795-4082-905c-75744d6a077b -accessToken hv3zp4IA8nxcowfZc35r5tDHrlmzUZoExTBgESksngo005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"Car Customization","end_time_seconds":"1714114804"}}
|
||||||
|
>>>>>>> d491c6dee7672d848b4f6de15eb4260fa3aef046
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
{"count":1,"self":52.366592,"total":53.0602252,"children":{"InitializeActuators":{"count":8,"self":0.001,"total":0.001,"children":null},"InitializeSensors":{"count":8,"self":0.0030047999999999997,"total":0.0030047999999999997,"children":null},"AgentSendState":{"count":2421,"self":0.1186515,"total":0.1531092,"children":{"CollectObservations":{"count":3880,"self":0.020620199999999998,"total":0.020620199999999998,"children":null},"WriteActionMask":{"count":3880,"self":0.0038607,"total":0.0038607,"children":null},"RequestDecision":{"count":3880,"self":0.0099768,"total":0.0099768,"children":null}}},"DecideAction":{"count":2421,"self":0.3727546,"total":0.38228779999999996,"children":{"RayPerceptionSensor.Perceive":{"count":7760,"self":0.0095332,"total":0.0095332,"children":null}}},"AgentAct":{"count":2421,"self":0.15323209999999998,"total":0.15323209999999998,"children":null}},"gauges":{"Benson Track2.CumulativeReward":{"count":1,"max":24.2250633,"min":24.2250633,"runningAverage":24.2250633,"value":24.2250633,"weightedAverage":24.2250633}},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1714115875","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\noahk\\Documents\\Unity projects\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-noahk -hubSessionId a6f45e0e-41b6-4c96-a70e-ec8e10ca5aa9 -accessToken LhF-MiZYoHmiI2p1_6JvQZvJ6QUPd4VyLbrTbhNHTT8005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"Racetrack mini","end_time_seconds":"1714115928"}}
|
<<<<<<< HEAD
|
||||||
|
{"count":1,"self":52.366592,"total":53.0602252,"children":{"InitializeActuators":{"count":8,"self":0.001,"total":0.001,"children":null},"InitializeSensors":{"count":8,"self":0.0030047999999999997,"total":0.0030047999999999997,"children":null},"AgentSendState":{"count":2421,"self":0.1186515,"total":0.1531092,"children":{"CollectObservations":{"count":3880,"self":0.020620199999999998,"total":0.020620199999999998,"children":null},"WriteActionMask":{"count":3880,"self":0.0038607,"total":0.0038607,"children":null},"RequestDecision":{"count":3880,"self":0.0099768,"total":0.0099768,"children":null}}},"DecideAction":{"count":2421,"self":0.3727546,"total":0.38228779999999996,"children":{"RayPerceptionSensor.Perceive":{"count":7760,"self":0.0095332,"total":0.0095332,"children":null}}},"AgentAct":{"count":2421,"self":0.15323209999999998,"total":0.15323209999999998,"children":null}},"gauges":{"Benson Track2.CumulativeReward":{"count":1,"max":24.2250633,"min":24.2250633,"runningAverage":24.2250633,"value":24.2250633,"weightedAverage":24.2250633}},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1714115875","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\noahk\\Documents\\Unity projects\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-noahk -hubSessionId a6f45e0e-41b6-4c96-a70e-ec8e10ca5aa9 -accessToken LhF-MiZYoHmiI2p1_6JvQZvJ6QUPd4VyLbrTbhNHTT8005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"Racetrack mini","end_time_seconds":"1714115928"}}
|
||||||
|
=======
|
||||||
|
{"count":1,"self":77.2914176,"total":88.8739126,"children":{"InitializeActuators":{"count":8,"self":0.0059371,"total":0.0059371,"children":null},"InitializeSensors":{"count":8,"self":0.0019879,"total":0.0019879,"children":null},"AgentSendState":{"count":4180,"self":0.83452129999999991,"total":1.0729148,"children":{"CollectObservations":{"count":6688,"self":0.1623398,"total":0.1623398,"children":null},"WriteActionMask":{"count":6688,"self":0.0225535,"total":0.0225535,"children":null},"RequestDecision":{"count":6688,"self":0.0535002,"total":0.0535002,"children":null}}},"DecideAction":{"count":4180,"self":9.6043296,"total":9.7296031,"children":{"RayPerceptionSensor.Perceive":{"count":13376,"self":0.1252737,"total":0.1252737,"children":null}}},"AgentAct":{"count":4180,"self":0.7690629,"total":0.7690629,"children":null}},"gauges":{"Benson Track2.CumulativeReward":{"count":20,"max":25.1789246,"min":-0.826870739,"runningAverage":10.11593,"value":25.0408516,"weightedAverage":15.8942223}},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1714115839","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\Magnus\\Desktop\\Ny unityting\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-Magnus -hubSessionId 8c17471b-7795-4082-905c-75744d6a077b -accessToken hv3zp4IA8nxcowfZc35r5tDHrlmzUZoExTBgESksngo005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"Racetrack mini","end_time_seconds":"1714115927"}}
|
||||||
|
>>>>>>> d491c6dee7672d848b4f6de15eb4260fa3aef046
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"count":1,"self":45.2942848,"total":45.3013117,"children":{"InitializeActuators":{"count":1,"self":0,"total":0,"children":null},"InitializeSensors":{"count":1,"self":0.0020066999999999997,"total":0.0020066999999999997,"children":null},"AgentSendState":{"count":1,"self":0.0035031,"total":0.0045081,"children":{"CollectObservations":{"count":1,"self":0.001005,"total":0.001005,"children":null}}}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1714051487","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\noahk\\Documents\\Unity projects\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-noahk -hubSessionId b034e26d-02c7-41ad-9a20-c198a628a35a -accessToken Dt6gMuGhvx1BDLlNSM4Gg2t5w5_py5VVtuHcl5oYJQk005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"mini_racetrack3","end_time_seconds":"1714051533"}}
|
{"count":1,"self":15.556857599999999,"total":16.1084672,"children":{"InitializeActuators":{"count":8,"self":0.0069818,"total":0.0069818,"children":null},"InitializeSensors":{"count":8,"self":0.0019955,"total":0.0019955,"children":null},"AgentSendState":{"count":570,"self":0.0815235,"total":0.11306559999999999,"children":{"CollectObservations":{"count":912,"self":0.016867,"total":0.016867,"children":null},"WriteActionMask":{"count":912,"self":0.0010308,"total":0.0010308,"children":null},"RequestDecision":{"count":912,"self":0.0136443,"total":0.0136443,"children":null}}},"DecideAction":{"count":570,"self":0.32478579999999996,"total":0.3337745,"children":{"RayPerceptionSensor.Perceive":{"count":1824,"self":0.0089886999999999988,"total":0.0089886999999999988,"children":null}}},"AgentAct":{"count":570,"self":0.0937756,"total":0.0937756,"children":null}},"gauges":{"Benson Track2.CumulativeReward":{"count":8,"max":-0.0181858838,"min":-0.132031038,"runningAverage":-0.06643952,"value":-0.0427289754,"weightedAverage":-0.0568303242}},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1714113351","unity_version":"2022.3.11f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.11f1\\Editor\\Unity.exe -projectpath C:\\Users\\Magnus\\Desktop\\Ny unityting\\Racesm -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-Magnus -hubSessionId 8c17471b-7795-4082-905c-75744d6a077b -accessToken hv3zp4IA8nxcowfZc35r5tDHrlmzUZoExTBgESksngo005f","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"mini_racetrack3","end_time_seconds":"1714113367"}}
|
||||||
@@ -38,7 +38,7 @@ RenderSettings:
|
|||||||
m_ReflectionIntensity: 1
|
m_ReflectionIntensity: 1
|
||||||
m_CustomReflection: {fileID: 0}
|
m_CustomReflection: {fileID: 0}
|
||||||
m_Sun: {fileID: 0}
|
m_Sun: {fileID: 0}
|
||||||
m_IndirectSpecularColor: {r: 0.32221603, g: 0.662208, b: 0.9910422, a: 1}
|
m_IndirectSpecularColor: {r: 0.29684296, g: 0.6337676, b: 0.9937157, a: 1}
|
||||||
m_UseRadianceAmbientProbe: 0
|
m_UseRadianceAmbientProbe: 0
|
||||||
--- !u!157 &3
|
--- !u!157 &3
|
||||||
LightmapSettings:
|
LightmapSettings:
|
||||||
@@ -123,207 +123,6 @@ NavMeshSettings:
|
|||||||
debug:
|
debug:
|
||||||
m_Flags: 0
|
m_Flags: 0
|
||||||
m_NavMeshData: {fileID: 0}
|
m_NavMeshData: {fileID: 0}
|
||||||
--- !u!1001 &562743387
|
|
||||||
PrefabInstance:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Modification:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransformParent: {fileID: 0}
|
|
||||||
m_Modifications:
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[0]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076464}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[1]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076463}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[2]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076462}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[3]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076461}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[4]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076460}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[5]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076459}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[6]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076458}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[7]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076457}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[8]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076456}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[9]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076455}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[10]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076454}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[11]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076453}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[12]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076452}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[13]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076451}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[14]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076450}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[15]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076449}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[16]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076448}
|
|
||||||
- target: {fileID: 2267504697065412416, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[17]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076447}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[0]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076464}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[1]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076463}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[2]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076462}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[3]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076461}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[4]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076460}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[5]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076459}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[6]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076458}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[7]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076457}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[8]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076456}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[9]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076455}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[10]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076454}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[11]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076453}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[12]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076452}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[13]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076451}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[14]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076450}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[15]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076449}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[16]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076448}
|
|
||||||
- target: {fileID: 5400182112440573950, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: checkpoints.Array.data[17]
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 5271093100053076447}
|
|
||||||
- target: {fileID: 6461281435351799366, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_Name
|
|
||||||
value: Hotrod
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalPosition.x
|
|
||||||
value: -2.7
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalPosition.y
|
|
||||||
value: 0.20100284
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalPosition.z
|
|
||||||
value: -10.3
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6760919851603153930, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
|
||||||
m_RemovedGameObjects: []
|
|
||||||
m_AddedGameObjects: []
|
|
||||||
m_AddedComponents: []
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 1debb6b1b9a0b9d4ea4191642f19fe15, type: 3}
|
|
||||||
--- !u!1001 &1761316271
|
--- !u!1001 &1761316271
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -534,100 +333,9 @@ PrefabInstance:
|
|||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
m_AddedComponents: []
|
m_AddedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
||||||
--- !u!1 &5271093100053076447 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 6838100718802891394, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076448 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 4706597169299759970, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076449 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 1997646110503820959, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076450 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 1343942738810352354, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076451 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 7591343556757434636, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076452 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 3949292162884599890, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076453 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 6112896674576239621, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076454 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 5993338697970663431, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076455 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 3022191931717917784, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076456 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 6038226736092541883, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076457 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 5938590487780353885, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076458 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 8839090541742178523, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076459 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 8460728282651437807, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076460 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 7967632219792475599, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076461 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 3446889489251159559, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076462 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 9013004020710306357, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076463 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 6042017897603408828, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5271093100053076464 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 2226169939592596516, guid: 9a6052ce7b65c814285a6cb4659dab3c, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5271093100053076446}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1660057539 &9223372036854775807
|
--- !u!1660057539 &9223372036854775807
|
||||||
SceneRoots:
|
SceneRoots:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_Roots:
|
m_Roots:
|
||||||
- {fileID: 1761316271}
|
- {fileID: 1761316271}
|
||||||
- {fileID: 5271093100053076446}
|
- {fileID: 5271093100053076446}
|
||||||
- {fileID: 562743387}
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -10,17 +10,13 @@ public class NPCimproved : MonoBehaviour
|
|||||||
private bool walking = true;
|
private bool walking = true;
|
||||||
|
|
||||||
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if (walking)
|
if (walking)
|
||||||
{
|
{
|
||||||
//npcPrefab.transform.position += new Vector3(0,0,0.005f);
|
//npcPrefab.transform.position += new Vector3(0,0,0.005f);
|
||||||
npcPrefab.transform.position += transform.forward * Time.deltaTime;
|
npcPrefab.transform.position += transform.forward * Time.deltaTime;
|
||||||
|
npcPrefab.transform.position = new Vector3(npcPrefab.transform.position.x, 0, npcPrefab.transform.position.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
//animator.SetBool("IsTurning", false);
|
//animator.SetBool("IsTurning", false);
|
||||||
@@ -42,7 +38,7 @@ public class NPCimproved : MonoBehaviour
|
|||||||
if (col.gameObject.tag == "Wall")
|
if (col.gameObject.tag == "Wall")
|
||||||
{
|
{
|
||||||
|
|
||||||
npcPrefab.transform.eulerAngles += new Vector3(0,180,0);
|
npcPrefab.transform.eulerAngles += new Vector3(0,120,0);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,18 +77,19 @@ public class PlayerController : MonoBehaviour
|
|||||||
|
|
||||||
if (isBraking)
|
if (isBraking)
|
||||||
{
|
{
|
||||||
|
wheel.WheelCollider.motorTorque = 0;
|
||||||
wheel.WheelCollider.brakeTorque = Mathf.Abs(vInput) * brakeTorque;
|
wheel.WheelCollider.brakeTorque = Mathf.Abs(vInput) * brakeTorque;
|
||||||
//wheel.WheelCollider.motorTorque = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isAccelerating)
|
if (isAccelerating)
|
||||||
{
|
{
|
||||||
// Apply torque to Wheel colliders that have "Motorized" enabled
|
// Apply torque to Wheel colliders that have "Motorized" enabled
|
||||||
|
wheel.WheelCollider.brakeTorque = 0;
|
||||||
if (wheel.motorized)
|
if (wheel.motorized)
|
||||||
{
|
{
|
||||||
wheel.WheelCollider.motorTorque = vInput * currentMotorTorque;
|
wheel.WheelCollider.motorTorque = vInput * currentMotorTorque;
|
||||||
}
|
}
|
||||||
wheel.WheelCollider.brakeTorque = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user