crazy car physics

This commit is contained in:
2024-04-05 14:06:07 +02:00
parent ce41f0141b
commit b277104435
5 changed files with 4073 additions and 157 deletions

View File

@@ -11,6 +11,7 @@ GameObject:
- component: {fileID: 5420764024659664985}
- component: {fileID: 3239213433477781764}
- component: {fileID: 1857703685905104433}
- component: {fileID: 5418785709807611868}
m_Layer: 0
m_Name: Hotrod
m_TagString: Untagged
@@ -28,7 +29,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: 1, y: 1, z: 1}
m_LocalScale: {x: 0.125, y: 0.125, z: 0.125}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7953198523918571078}
@@ -43,8 +44,8 @@ Rigidbody:
m_GameObject: {fileID: 5711380006811689493}
serializedVersion: 4
m_Mass: 1500
m_Drag: 0.25
m_AngularDrag: 0.05
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}
@@ -68,7 +69,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5711380006811689493}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a23c7d66d3ff94847a946cf7b30ca1b7, type: 3}
m_Name:
@@ -76,6 +77,24 @@ MonoBehaviour:
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
--- !u!1001 &6613855157239500655
PrefabInstance:
m_ObjectHideFlags: 0
@@ -120,6 +139,14 @@ PrefabInstance:
propertyPath: m_SuspensionDistance
value: 0.25
objectReference: {fileID: 0}
- target: {fileID: 211855197576047450, guid: 0a84c5c2846d02440b5cea7fafee4fa5, type: 3}
propertyPath: m_ForwardFriction.m_Stiffness
value: 2
objectReference: {fileID: 0}
- target: {fileID: 211855197576047450, guid: 0a84c5c2846d02440b5cea7fafee4fa5, type: 3}
propertyPath: m_SidewaysFriction.m_Stiffness
value: 2
objectReference: {fileID: 0}
- target: {fileID: 211855197576047450, guid: 0a84c5c2846d02440b5cea7fafee4fa5, type: 3}
propertyPath: m_SuspensionSpring.targetPosition
value: 1
@@ -204,6 +231,14 @@ PrefabInstance:
propertyPath: m_SuspensionSpring.damper
value: 1500
objectReference: {fileID: 0}
- target: {fileID: 8344151628468935024, guid: 0a84c5c2846d02440b5cea7fafee4fa5, type: 3}
propertyPath: m_ForwardFriction.m_Stiffness
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8344151628468935024, guid: 0a84c5c2846d02440b5cea7fafee4fa5, type: 3}
propertyPath: m_SidewaysFriction.m_Stiffness
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8344151628468935024, guid: 0a84c5c2846d02440b5cea7fafee4fa5, type: 3}
propertyPath: m_SuspensionSpring.targetPosition
value: 1