From 6ff2974151b3541a60de9ca9e1e558755616dddf Mon Sep 17 00:00:00 2001 From: Lukas Langrock Date: Sat, 24 Sep 2022 13:22:45 +0200 Subject: [PATCH] integrate carcontrol script and optimize settings --- game/Assets/CarControl.cs | 3 +-- game/Assets/Toon Vehicles Free/Flat.unity | 25 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/game/Assets/CarControl.cs b/game/Assets/CarControl.cs index b5b5b56..2997f7c 100644 --- a/game/Assets/CarControl.cs +++ b/game/Assets/CarControl.cs @@ -1,11 +1,10 @@ -using System.Xml.Schema; using System; using System.Numerics; using System.Collections; using System.Collections.Generic; using UnityEngine; -public class CarControls : MonoBehaviour +public class CarControl : MonoBehaviour { private float speed; private float rotation; diff --git a/game/Assets/Toon Vehicles Free/Flat.unity b/game/Assets/Toon Vehicles Free/Flat.unity index 1f185e0..2e39939 100644 --- a/game/Assets/Toon Vehicles Free/Flat.unity +++ b/game/Assets/Toon Vehicles Free/Flat.unity @@ -123,6 +123,31 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1 &937225805 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 7118762931400538822, guid: 3201962d4d6aec94fbfe2d6cc7a9a2d1, type: 3} + m_PrefabInstance: {fileID: 3780944615019875178} + m_PrefabAsset: {fileID: 0} +--- !u!114 &937225806 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 937225805} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1a379f6a4c0c4bda8afe838e061a30bd, type: 3} + m_Name: + m_EditorClassIdentifier: + MaxLeftSteer: -45 + MaxRightSteer: 45 + MaxForwardSpeed: 2048 + MaxBackwardSpeed: -50 + EngineBreakPower: 2 + Acceleration: 10 + BreakForce: 300 + SteerStraighteningPower: 5 --- !u!1 &963194225 GameObject: m_ObjectHideFlags: 0