Commit b2db4e15 authored by Danial KordModanlou's avatar Danial KordModanlou

final movement

parent 8da55d1e
distance x from first pivot,distance y from first pivot,distance z from first pivot,current speed,last pivot name,distance x to last pivot,distance y to last pivot,distance z to last pivot,total distance with wall,distance x with wall,distance y with wall,distance z with wall
3.359875,-0.8572219,43.48405,17.48538,startPoint,3.359875,-0.8572219,43.48405,68.01453,-70.32,0.4034879,19.45612
3.433865,-0.8627909,44.15273,17.12177,startPoint,3.433865,-0.8627909,44.15273,68.5444,-70.32,0.4034879,19.45612
3.507223,-0.868404,44.82095,16.76646,startPoint,3.507223,-0.868404,44.82095,69.07602,-70.32,0.4034879,19.45612
3.580566,-0.8741485,45.49342,16.41929,startPoint,3.580566,-0.8741485,45.49342,69.61313,-70.32,0.4034879,19.45612
3.651751,-0.8798269,46.14957,16.06286,startPoint,3.651751,-0.8798269,46.14957,70.13927,-70.32,0.4034879,19.45612
3.72718,-0.8859107,46.84476,15.96918,startPoint,3.72718,-0.8859107,46.84476,70.69917,-70.32,0.4034879,19.45612
3.803581,-0.8916297,47.49965,16.13989,startPoint,3.803581,-0.8916297,47.49965,71.23248,-70.32,0.4034879,19.45612
3.890923,-0.8970748,48.13832,16.47914,startPoint,3.890923,-0.8970748,48.13832,71.76323,-70.32,0.4034879,19.45612
4.002602,-0.9024373,48.79826,16.98821,startPoint,4.002602,-0.9024373,48.79826,72.32791,-70.32,0.4034879,19.45612
4.178267,-0.9083439,49.59259,17.74615,startPoint,4.178267,-0.9083439,49.59259,73.03731,-70.32,0.4034879,19.45612
4.408791,-0.9077067,50.33248,18.27521,startPoint,4.408791,-0.9077067,50.33248,73.74416,-70.32,0.4034879,19.45612
4.679785,-0.9148338,51.02537,18.01321,startPoint,4.679785,-0.9148338,51.02537,74.44369,-70.32,0.4034879,19.45612
5.033108,-0.9147067,51.75153,18.45415,startPoint,5.033108,-0.9147067,51.75153,75.22311,-70.32,0.4034879,19.45612
5.385714,-0.9172106,52.41089,17.98694,startPoint,5.385714,-0.9172106,52.41089,75.95219,-70.32,0.4034879,19.45612
5.726906,-0.9185951,53.02229,18.52341,startPoint,5.726906,-0.9185951,53.02229,76.63783,-70.32,0.4034879,19.45612
6.094198,-0.9200349,53.65869,18.09674,startPoint,6.094198,-0.9200349,53.65869,77.35971,-70.32,0.4034879,19.45612
6.460052,-0.9214008,54.2701,18.65522,startPoint,6.460052,-0.9214008,54.2701,78.06192,-70.32,0.4034879,19.45612
6.811016,-0.9222258,54.8401,18.25225,startPoint,6.811016,-0.9222258,54.8401,78.72315,-70.32,0.4034879,19.45612
7.183102,-0.9230126,55.43051,18.45801,startPoint,7.183102,-0.9230126,55.43051,79.41376,-70.32,0.4034879,19.45612
7.585564,-0.9238596,56.05559,18.34688,startPoint,7.585564,-0.9238596,56.05559,80.15057,-70.32,0.4034879,19.45612
7.983639,-0.9232958,56.65572,18.44702,startPoint,7.983639,-0.9232958,56.65572,80.86563,-70.32,0.4034879,19.45612
8.386854,-0.924587,57.22807,18.36971,startPoint,8.386854,-0.924587,57.22807,81.56293,-70.32,0.4034879,19.45612
8.837873,-0.9242825,57.82415,18.38135,startPoint,8.837873,-0.9242825,57.82415,82.30924,-70.32,0.4034879,19.45612
9.316271,-0.9235115,58.41157,18.25002,startPoint,9.316271,-0.9235115,58.41157,83.06664,-70.32,0.4034879,19.45612
9.816822,-0.9225924,59.01786,18.60193,startPoint,9.816822,-0.9225924,59.01786,83.85275,-70.32,0.4034879,19.45612
10.25958,-0.921792,59.55476,18.2675,startPoint,10.25958,-0.921792,59.55476,84.54858,-70.32,0.4034879,19.45612
10.76681,-0.920663,60.18123,18.43503,startPoint,10.76681,-0.920663,60.18123,85.35441,-70.32,0.4034879,19.45612
11.22683,-0.9226873,60.74745,17.95315,startPoint,11.22683,-0.9226873,60.74745,86.0838,-70.32,0.4034879,19.45612
11.66055,-0.9244306,61.27936,17.57438,startPoint,11.66055,-0.9244306,61.27936,86.77,-70.32,0.4034879,19.45612
12.06595,-0.9233502,61.77621,17.16022,startPoint,12.06595,-0.9233502,61.77621,87.41113,-70.32,0.4034879,19.45612
12.49973,-0.9221392,62.30771,16.75585,startPoint,12.49973,-0.9221392,62.30771,88.09703,-70.32,0.4034879,19.45612
12.89005,-0.9211268,62.78602,16.36103,startPoint,12.89005,-0.9211268,62.78602,88.71426,-70.32,0.4034879,19.45612
13.2905,-0.920155,63.27687,15.97545,startPoint,13.2905,-0.920155,63.27687,89.34762,-70.32,0.4034879,19.45612
13.6754,-0.9192713,63.74886,15.59886,startPoint,13.6754,-0.9192713,63.74886,89.95654,-70.32,0.4034879,19.45612
14.06226,-0.9184223,64.22351,15.23102,startPoint,14.06226,-0.9184223,64.22351,90.56875,-70.32,0.4034879,19.45612
fileFormatVersion: 2
guid: abb9cb2ea6aeb2e4c9a4d63bde0cd6bd
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
...@@ -149,7 +149,7 @@ Transform: ...@@ -149,7 +149,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 15 m_RootOrder: 16
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &362651534 --- !u!1 &362651534
GameObject: GameObject:
...@@ -256,7 +256,7 @@ Transform: ...@@ -256,7 +256,7 @@ Transform:
m_LocalScale: {x: 1, y: 1.6230241, z: 7.11823} m_LocalScale: {x: 1, y: 1.6230241, z: 7.11823}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 14 m_RootOrder: 15
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &373719878 --- !u!1 &373719878
GameObject: GameObject:
...@@ -349,7 +349,7 @@ Transform: ...@@ -349,7 +349,7 @@ Transform:
m_LocalScale: {x: 1000.0001, y: 1, z: 999.9999} m_LocalScale: {x: 1000.0001, y: 1, z: 999.9999}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 12 m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0.611, y: 0.0050000004, z: 0.84700006} m_LocalEulerAnglesHint: {x: 0.611, y: 0.0050000004, z: 0.84700006}
--- !u!224 &378007929 stripped --- !u!224 &378007929 stripped
RectTransform: RectTransform:
...@@ -412,7 +412,7 @@ PrefabInstance: ...@@ -412,7 +412,7 @@ PrefabInstance:
- target: {fileID: 2070773664156325756, guid: 916384947382a4841bf79597a9e136ab, - target: {fileID: 2070773664156325756, guid: 916384947382a4841bf79597a9e136ab,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 8 value: 9
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2070773664156325756, guid: 916384947382a4841bf79597a9e136ab, - target: {fileID: 2070773664156325756, guid: 916384947382a4841bf79597a9e136ab,
type: 3} type: 3}
...@@ -511,7 +511,7 @@ PrefabInstance: ...@@ -511,7 +511,7 @@ PrefabInstance:
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 6 value: 7
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
...@@ -630,7 +630,7 @@ Transform: ...@@ -630,7 +630,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 10 m_RootOrder: 11
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &709509107 --- !u!1 &709509107
GameObject: GameObject:
...@@ -674,8 +674,102 @@ Transform: ...@@ -674,8 +674,102 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 16 m_RootOrder: 17
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &781198528
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 6517492368474291616, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_Name
value: final orginal (6)
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291616, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalPosition.x
value: -252.4757
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalPosition.y
value: -2.893452
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalPosition.z
value: -31.728985
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291629, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: kebordTogle
value: 116
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291629, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: keyboardActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6517492369421744767, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6517492369421744767, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 93ab9d7bcd8b80744ab77a800f1db95b, type: 3}
--- !u!1001 &835181995 --- !u!1001 &835181995
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -731,7 +825,7 @@ PrefabInstance: ...@@ -731,7 +825,7 @@ PrefabInstance:
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 3 value: 4
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
...@@ -931,7 +1025,7 @@ PrefabInstance: ...@@ -931,7 +1025,7 @@ PrefabInstance:
- target: {fileID: 3385489612561274353, guid: 8a33eea58df35424f9723773bb025809, - target: {fileID: 3385489612561274353, guid: 8a33eea58df35424f9723773bb025809,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 4 value: 5
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3385489612561274353, guid: 8a33eea58df35424f9723773bb025809, - target: {fileID: 3385489612561274353, guid: 8a33eea58df35424f9723773bb025809,
type: 3} type: 3}
...@@ -1010,7 +1104,7 @@ PrefabInstance: ...@@ -1010,7 +1104,7 @@ PrefabInstance:
- target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf, - target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf, - target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf,
type: 3} type: 3}
...@@ -1105,7 +1199,7 @@ PrefabInstance: ...@@ -1105,7 +1199,7 @@ PrefabInstance:
- target: {fileID: 2202606020465897630, guid: 128c80cc77445014fb3f8deb2e41a075, - target: {fileID: 2202606020465897630, guid: 128c80cc77445014fb3f8deb2e41a075,
type: 3} type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6930703782440394830, guid: 128c80cc77445014fb3f8deb2e41a075, - target: {fileID: 6930703782440394830, guid: 128c80cc77445014fb3f8deb2e41a075,
type: 3} type: 3}
...@@ -1174,7 +1268,7 @@ PrefabInstance: ...@@ -1174,7 +1268,7 @@ PrefabInstance:
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 2 value: 3
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
...@@ -1592,6 +1686,11 @@ PrefabInstance: ...@@ -1592,6 +1686,11 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: final orginal (5) value: final orginal (5)
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6517492368474291616, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
...@@ -1630,7 +1729,7 @@ PrefabInstance: ...@@ -1630,7 +1729,7 @@ PrefabInstance:
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 1 value: 2
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
...@@ -1650,12 +1749,12 @@ PrefabInstance: ...@@ -1650,12 +1749,12 @@ PrefabInstance:
- target: {fileID: 6517492369421744767, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492369421744767, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
propertyPath: m_AnchorMax.x propertyPath: m_AnchorMax.x
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6517492369421744767, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492369421744767, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 93ab9d7bcd8b80744ab77a800f1db95b, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 93ab9d7bcd8b80744ab77a800f1db95b, type: 3}
...@@ -1780,7 +1879,7 @@ Transform: ...@@ -1780,7 +1879,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 11 m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1971670298 --- !u!1 &1971670298
GameObject: GameObject:
...@@ -1799,7 +1898,7 @@ GameObject: ...@@ -1799,7 +1898,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &1971670299 --- !u!224 &1971670299
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -1987,7 +2086,7 @@ Transform: ...@@ -1987,7 +2086,7 @@ Transform:
- {fileID: 1614892422} - {fileID: 1614892422}
- {fileID: 1389580375} - {fileID: 1389580375}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 13 m_RootOrder: 14
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &2047104779 --- !u!1001 &2047104779
PrefabInstance: PrefabInstance:
...@@ -2329,7 +2428,7 @@ PrefabInstance: ...@@ -2329,7 +2428,7 @@ PrefabInstance:
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 7 value: 8
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b, - target: {fileID: 6517492368474291627, guid: 93ab9d7bcd8b80744ab77a800f1db95b,
type: 3} type: 3}
...@@ -2473,7 +2572,7 @@ PrefabInstance: ...@@ -2473,7 +2572,7 @@ PrefabInstance:
- target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf, - target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 9 value: 10
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf, - target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf,
type: 3} type: 3}
......
...@@ -336,19 +336,7 @@ namespace TurnTheGameOn.IKDriver ...@@ -336,19 +336,7 @@ namespace TurnTheGameOn.IKDriver
CapSpeed (); CapSpeed ();
CalculateGearFactor (); CalculateGearFactor ();
CheckGear(clazh); CheckGear(clazh);
Debug.Log(currentGear); //Debug.Log(currentGear);
if (currentGear == -1)
{
Debug.Log("aghab");
//ApplyDrive(0, -1);
//transform.Rotate(0,0.1f * accel * Mathf.Lerp(-90,90,(steering + 1)/2)*Time.fixedDeltaTime,0);
transform.position += transform.forward * -1 * accel * Time.fixedDeltaTime*2;
rbody.velocity = Vector3.zero;
return;
//rbody.AddForce(-transform.forward*-1 * accel * Time.fixedDeltaTime*20000);
//return;
}
rbody.AddForce(-transform.up * downforce * rbody.velocity.magnitude); // Apply down force, used to add more grip in relation to speed rbody.AddForce(-transform.up * downforce * rbody.velocity.magnitude); // Apply down force, used to add more grip in relation to speed
CheckForWheelSpin(); CheckForWheelSpin();
...@@ -425,6 +413,21 @@ namespace TurnTheGameOn.IKDriver ...@@ -425,6 +413,21 @@ namespace TurnTheGameOn.IKDriver
} }
} }
void ReverseHand (float _reverseAmount)
{
reversing = true;
if (rbody.velocity.magnitude <= topSpeedReverse)
{
for (int i = 0; i < 4; i++)
{
wheelColliders [i].brakeTorque = 0f;
wheelColliders [i].motorTorque = -reverseTorque * _reverseAmount;
}
}
}
private void ApplyDrive(float accel, float footbrake) private void ApplyDrive(float accel, float footbrake)
{ {
if (overrideBrake) footbrake = overrideBrakePower; if (overrideBrake) footbrake = overrideBrakePower;
...@@ -462,8 +465,8 @@ namespace TurnTheGameOn.IKDriver ...@@ -462,8 +465,8 @@ namespace TurnTheGameOn.IKDriver
if (currentGear == -1) // reverse if (currentGear == -1) // reverse
{ {
//CancelInvoke ("ResetGearCheck"); //CancelInvoke ("ResetGearCheck");
if (speed < topSpeedReverse) Reverse (footbrake); if (speed < topSpeedReverse) ReverseHand(0.1f * accel);
if (accel > 0) ApplyBrake (accel); if (accel > 0) ApplyBrake (footbrake);
} }
else if (currentGear == 0) // neutral else if (currentGear == 0) // neutral
{ {
......
...@@ -147,6 +147,10 @@ namespace TurnTheGameOn.IKDriver ...@@ -147,6 +147,10 @@ namespace TurnTheGameOn.IKDriver
vehicleCameraSystem.OnLookBackKeyUp (); vehicleCameraSystem.OnLookBackKeyUp ();
} }
if (Input.GetKeyDown(kebordTogle))
{
keyboardActive = !keyboardActive;
}
} }
...@@ -194,9 +198,9 @@ namespace TurnTheGameOn.IKDriver ...@@ -194,9 +198,9 @@ namespace TurnTheGameOn.IKDriver
v = Mathf.Lerp(0, 1, (v+1)/ 2f); v = Mathf.Lerp(0, 1, (v+1)/ 2f);
breack = Mathf.Lerp(-1, 0, 1 - Mathf.Abs((breack - 1) / 2f)); breack = Mathf.Lerp(-1, 0, 1 - Mathf.Abs((breack - 1) / 2f));
///////////////////// /////////////////////
#if UNITY_EDITOR
debuger.Debuger.print("break: "+breack +"......" + "kelazh : "+cluch +" "+"steer :" + h +" v:"+v); //debuger.Debuger.print("break: "+breack +"......" + "kelazh : "+cluch +" "+"steer :" + h +" v:"+v);
#endif
emergencyBrake = (Input.GetKey(handBrakeKey) || Input.GetKey(handBrakeJoystick)) ? 1 : 0; emergencyBrake = (Input.GetKey(handBrakeKey) || Input.GetKey(handBrakeJoystick)) ? 1 : 0;
vehicleController.Move(cluch,h, v, breack, emergencyBrake); vehicleController.Move(cluch,h, v, breack, emergencyBrake);
......
...@@ -3887,19 +3887,13 @@ MonoBehaviour: ...@@ -3887,19 +3887,13 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9d627ab13c392c0469f78f8aef4faa2c, type: 3} m_Script: {fileID: 11500000, guid: 9d627ab13c392c0469f78f8aef4faa2c, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
d1: 354
d2: 359
d3: 364
d4: 367
d5: 369
d6: 363
vehicleInput: {fileID: 6517492368474291629} vehicleInput: {fileID: 6517492368474291629}
vehicleUI: {fileID: 0} vehicleUI: {fileID: 0}
RPMLimit: 8 RPMLimit: 8
realisticEngineSound: {fileID: 0} realisticEngineSound: {fileID: 0}
speedType: 1 speedType: 1
topSpeed: 140 topSpeed: 140
topSpeedReverse: 45 topSpeedReverse: 35.29
fullTorqueOverAllWheels: 3000 fullTorqueOverAllWheels: 3000
reverseTorque: 1500 reverseTorque: 1500
brakeTorque: 1500 brakeTorque: 1500
...@@ -3913,23 +3907,32 @@ MonoBehaviour: ...@@ -3913,23 +3907,32 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
m_Curve: m_Curve:
- serializedVersion: 3 - serializedVersion: 3
time: 0 time: -0.38989258
value: 0.85 value: 0.18130493
inSlope: 0 inSlope: 0
outSlope: 0 outSlope: 0
tangentMode: 0 tangentMode: 0
weightedMode: 0 weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.23145685
value: 0.28837198
inSlope: 0.19848993
outSlope: 0.19848993
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334 inWeight: 0.33333334
outWeight: 0.33333334 outWeight: 0.33333334
- serializedVersion: 3 - serializedVersion: 3
time: 1 time: 1
value: 0.65 value: 1
inSlope: 0 inSlope: 2
outSlope: 0 outSlope: 2
tangentMode: 0 tangentMode: 0
weightedMode: 0 weightedMode: 0
inWeight: 0.33333334 inWeight: 0
outWeight: 0.33333334 outWeight: 0
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
...@@ -3937,9 +3940,27 @@ MonoBehaviour: ...@@ -3937,9 +3940,27 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
m_Curve: m_Curve:
- serializedVersion: 3 - serializedVersion: 3
time: 0 time: -0.13323975
value: 0 value: 0.06451416
inSlope: 0 inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: -0.0004817143
value: 0.0023011975
inSlope: 0.02367796
outSlope: 0.02367796
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 0.0313901
value: 0.01767891
inSlope: 1
outSlope: 1 outSlope: 1
tangentMode: 0 tangentMode: 0
weightedMode: 0 weightedMode: 0
...@@ -3949,7 +3970,7 @@ MonoBehaviour: ...@@ -3949,7 +3970,7 @@ MonoBehaviour:
time: 1 time: 1
value: 1 value: 1
inSlope: 1 inSlope: 1
outSlope: 0 outSlope: 1
tangentMode: 0 tangentMode: 0
weightedMode: 0 weightedMode: 0
inWeight: 0.33333334 inWeight: 0.33333334
...@@ -4062,8 +4083,8 @@ MonoBehaviour: ...@@ -4062,8 +4083,8 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
clutch: 101 clutch: 101
keyboardActive: 0 keyboardActive: 1
kebordTogle: 32 kebordTogle: 116
vehicleController: {fileID: 6517492368474291624} vehicleController: {fileID: 6517492368474291624}
mobileCanvas: {fileID: 114473925136211070, guid: fc841b2b90713754a957058086cf38d6, mobileCanvas: {fileID: 114473925136211070, guid: fc841b2b90713754a957058086cf38d6,
type: 3} type: 3}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment