diff --git a/Assets/Car.meta b/Assets/Car.meta deleted file mode 100644 index 4034d1d..0000000 --- a/Assets/Car.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a34845792b8aeab4e8d53b7827bb0e5d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Car/Car Body.png b/Assets/Car/Car Body.png deleted file mode 100644 index 53d35a4..0000000 Binary files a/Assets/Car/Car Body.png and /dev/null differ diff --git a/Assets/Car/Car Body.png.meta b/Assets/Car/Car Body.png.meta deleted file mode 100644 index 2e76cdf..0000000 --- a/Assets/Car/Car Body.png.meta +++ /dev/null @@ -1,130 +0,0 @@ -fileFormatVersion: 2 -guid: 0601a27fa7aa1744287b8b9ea1308280 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 13 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - flipGreenChannel: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMipmapLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 0 - wrapV: 0 - wrapW: 0 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - swizzle: 50462976 - cookieLightType: 0 - platformSettings: - - serializedVersion: 4 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - ignorePlatformSupport: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 4 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - ignorePlatformSupport: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 4 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - ignorePlatformSupport: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - customData: - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spriteCustomMetadata: - entries: [] - nameFileIdTable: {} - mipmapLimitGroupName: - pSDRemoveMatte: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Car/Scripts.meta b/Assets/Car/Scripts.meta deleted file mode 100644 index f14866d..0000000 --- a/Assets/Car/Scripts.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 098eddcc00087d94cacab8097c3112a2 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Car/Scripts/Car.meta b/Assets/Car/Scripts/Car.meta deleted file mode 100644 index 39d5ba9..0000000 --- a/Assets/Car/Scripts/Car.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: bfdc5a5538675f14687a93215dc32d6d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Car/Scripts/Car/CarControl.cs b/Assets/Car/Scripts/Car/CarControl.cs deleted file mode 100644 index e9f27b8..0000000 --- a/Assets/Car/Scripts/Car/CarControl.cs +++ /dev/null @@ -1,93 +0,0 @@ -using UnityEngine; - -public class CarControl : MonoBehaviour -{ - [Header("Car Properties")] - public float motorTorque = 2000f; - public float brakeTorque = 2000f; - public float maxSpeed = 20f; - public float steeringRange = 30f; - public float steeringRangeAtMaxSpeed = 10f; - public float centreOfGravityOffset = -1f; - - private WheelControl[] wheels; - private Rigidbody rigidBody; - - private CarInputActions carControls; // Reference to the new input system - - void Awake() - { - carControls = new CarInputActions(); // Initialize Input Actions - } - void OnEnable() - { - carControls.Enable(); - } - - void OnDisable() - { - carControls.Disable(); - } - - // Start is called before the first frame update - void Start() - { - rigidBody = GetComponent(); - - // Adjust center of mass to improve stability and prevent rolling - Vector3 centerOfMass = rigidBody.centerOfMass; - centerOfMass.y += centreOfGravityOffset; - rigidBody.centerOfMass = centerOfMass; - - // Get all wheel components attached to the car - wheels = GetComponentsInChildren(); - } - - // FixedUpdate is called at a fixed time interval - void FixedUpdate() - { - // Read the Vector2 input from the new Input System - Vector2 inputVector = carControls.Car.Movement.ReadValue(); - - // Get player input for acceleration and steering - float vInput = inputVector.y; // Forward/backward input - float hInput = inputVector.x; // Steering input - - // Calculate current speed along the car's forward axis - float forwardSpeed = Vector3.Dot(transform.forward, rigidBody.linearVelocity); - float speedFactor = Mathf.InverseLerp(0, maxSpeed, Mathf.Abs(forwardSpeed)); // Normalized speed factor - - // Reduce motor torque and steering at high speeds for better handling - float currentMotorTorque = Mathf.Lerp(motorTorque, 0, speedFactor); - float currentSteerRange = Mathf.Lerp(steeringRange, steeringRangeAtMaxSpeed, speedFactor); - - // Determine if the player is accelerating or trying to reverse - bool isAccelerating = Mathf.Sign(vInput) == Mathf.Sign(forwardSpeed); - - foreach (var wheel in wheels) - { - // Apply steering to wheels that support steering - if (wheel.steerable) - { - wheel.WheelCollider.steerAngle = hInput * currentSteerRange; - } - - if (isAccelerating) - { - // Apply torque to motorized wheels - if (wheel.motorized) - { - wheel.WheelCollider.motorTorque = vInput * currentMotorTorque; - } - // Release brakes when accelerating - wheel.WheelCollider.brakeTorque = 0f; - } - else - { - // Apply brakes when reversing direction - wheel.WheelCollider.motorTorque = 0f; - wheel.WheelCollider.brakeTorque = Mathf.Abs(vInput) * brakeTorque; - } - } - } -} diff --git a/Assets/Car/Scripts/Car/CarControl.cs.meta b/Assets/Car/Scripts/Car/CarControl.cs.meta deleted file mode 100644 index 828ac01..0000000 --- a/Assets/Car/Scripts/Car/CarControl.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 0665500128106154f8d28bace7476416 \ No newline at end of file diff --git a/Assets/Car/Scripts/Car/CarInputActions.cs b/Assets/Car/Scripts/Car/CarInputActions.cs deleted file mode 100644 index db0d2e9..0000000 --- a/Assets/Car/Scripts/Car/CarInputActions.cs +++ /dev/null @@ -1,355 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator -// version 1.14.0 -// from Assets/Car/CarInputActions.inputactions -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine.InputSystem; -using UnityEngine.InputSystem.Utilities; - -/// -/// Provides programmatic access to , , and instances defined in asset "Assets/Car/CarInputActions.inputactions". -/// -/// -/// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified. -/// -/// -/// -/// using namespace UnityEngine; -/// using UnityEngine.InputSystem; -/// -/// // Example of using an InputActionMap named "Player" from a UnityEngine.MonoBehaviour implementing callback interface. -/// public class Example : MonoBehaviour, MyActions.IPlayerActions -/// { -/// private MyActions_Actions m_Actions; // Source code representation of asset. -/// private MyActions_Actions.PlayerActions m_Player; // Source code representation of action map. -/// -/// void Awake() -/// { -/// m_Actions = new MyActions_Actions(); // Create asset object. -/// m_Player = m_Actions.Player; // Extract action map object. -/// m_Player.AddCallbacks(this); // Register callback interface IPlayerActions. -/// } -/// -/// void OnDestroy() -/// { -/// m_Actions.Dispose(); // Destroy asset object. -/// } -/// -/// void OnEnable() -/// { -/// m_Player.Enable(); // Enable all actions within map. -/// } -/// -/// void OnDisable() -/// { -/// m_Player.Disable(); // Disable all actions within map. -/// } -/// -/// #region Interface implementation of MyActions.IPlayerActions -/// -/// // Invoked when "Move" action is either started, performed or canceled. -/// public void OnMove(InputAction.CallbackContext context) -/// { -/// Debug.Log($"OnMove: {context.ReadValue<Vector2>()}"); -/// } -/// -/// // Invoked when "Attack" action is either started, performed or canceled. -/// public void OnAttack(InputAction.CallbackContext context) -/// { -/// Debug.Log($"OnAttack: {context.ReadValue<float>()}"); -/// } -/// -/// #endregion -/// } -/// -/// -public partial class @CarInputActions: IInputActionCollection2, IDisposable -{ - /// - /// Provides access to the underlying asset instance. - /// - public InputActionAsset asset { get; } - - /// - /// Constructs a new instance. - /// - public @CarInputActions() - { - asset = InputActionAsset.FromJson(@"{ - ""name"": ""CarInputActions"", - ""maps"": [ - { - ""name"": ""Car"", - ""id"": ""c19f950c-3a7a-4a76-8523-1aa6fe6fcc3f"", - ""actions"": [ - { - ""name"": ""Movement"", - ""type"": ""Value"", - ""id"": ""a3955e03-93cf-4eb3-aa7e-d47eb8f6589c"", - ""expectedControlType"": ""Vector2"", - ""processors"": """", - ""interactions"": """", - ""initialStateCheck"": true - } - ], - ""bindings"": [ - { - ""name"": ""2D Vector"", - ""id"": ""4acb7ca1-35a7-4da8-8538-b419114f937a"", - ""path"": ""2DVector"", - ""interactions"": """", - ""processors"": """", - ""groups"": """", - ""action"": ""Movement"", - ""isComposite"": true, - ""isPartOfComposite"": false - }, - { - ""name"": ""up"", - ""id"": ""7cf87b87-53dc-449a-a3c4-f2e1f37f588a"", - ""path"": ""/w"", - ""interactions"": """", - ""processors"": """", - ""groups"": """", - ""action"": ""Movement"", - ""isComposite"": false, - ""isPartOfComposite"": true - }, - { - ""name"": ""down"", - ""id"": ""6f7380e9-0226-4816-92cb-3d668bd040f9"", - ""path"": ""/s"", - ""interactions"": """", - ""processors"": """", - ""groups"": """", - ""action"": ""Movement"", - ""isComposite"": false, - ""isPartOfComposite"": true - }, - { - ""name"": ""left"", - ""id"": ""5bf6f0e5-ee39-410a-9997-d4ef3362d1a2"", - ""path"": ""/a"", - ""interactions"": """", - ""processors"": """", - ""groups"": """", - ""action"": ""Movement"", - ""isComposite"": false, - ""isPartOfComposite"": true - }, - { - ""name"": ""right"", - ""id"": ""e9e1e925-1395-4159-a82a-b359f9767e77"", - ""path"": ""/d"", - ""interactions"": """", - ""processors"": """", - ""groups"": """", - ""action"": ""Movement"", - ""isComposite"": false, - ""isPartOfComposite"": true - } - ] - } - ], - ""controlSchemes"": [] -}"); - // Car - m_Car = asset.FindActionMap("Car", throwIfNotFound: true); - m_Car_Movement = m_Car.FindAction("Movement", throwIfNotFound: true); - } - - ~@CarInputActions() - { - UnityEngine.Debug.Assert(!m_Car.enabled, "This will cause a leak and performance issues, CarInputActions.Car.Disable() has not been called."); - } - - /// - /// Destroys this asset and all associated instances. - /// - public void Dispose() - { - UnityEngine.Object.Destroy(asset); - } - - /// - public InputBinding? bindingMask - { - get => asset.bindingMask; - set => asset.bindingMask = value; - } - - /// - public ReadOnlyArray? devices - { - get => asset.devices; - set => asset.devices = value; - } - - /// - public ReadOnlyArray controlSchemes => asset.controlSchemes; - - /// - public bool Contains(InputAction action) - { - return asset.Contains(action); - } - - /// - public IEnumerator GetEnumerator() - { - return asset.GetEnumerator(); - } - - /// - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - - /// - public void Enable() - { - asset.Enable(); - } - - /// - public void Disable() - { - asset.Disable(); - } - - /// - public IEnumerable bindings => asset.bindings; - - /// - public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) - { - return asset.FindAction(actionNameOrId, throwIfNotFound); - } - - /// - public int FindBinding(InputBinding bindingMask, out InputAction action) - { - return asset.FindBinding(bindingMask, out action); - } - - // Car - private readonly InputActionMap m_Car; - private List m_CarActionsCallbackInterfaces = new List(); - private readonly InputAction m_Car_Movement; - /// - /// Provides access to input actions defined in input action map "Car". - /// - public struct CarActions - { - private @CarInputActions m_Wrapper; - - /// - /// Construct a new instance of the input action map wrapper class. - /// - public CarActions(@CarInputActions wrapper) { m_Wrapper = wrapper; } - /// - /// Provides access to the underlying input action "Car/Movement". - /// - public InputAction @Movement => m_Wrapper.m_Car_Movement; - /// - /// Provides access to the underlying input action map instance. - /// - public InputActionMap Get() { return m_Wrapper.m_Car; } - /// - public void Enable() { Get().Enable(); } - /// - public void Disable() { Get().Disable(); } - /// - public bool enabled => Get().enabled; - /// - /// Implicitly converts an to an instance. - /// - public static implicit operator InputActionMap(CarActions set) { return set.Get(); } - /// - /// Adds , and callbacks provided via on all input actions contained in this map. - /// - /// Callback instance. - /// - /// If is null or have already been added this method does nothing. - /// - /// - public void AddCallbacks(ICarActions instance) - { - if (instance == null || m_Wrapper.m_CarActionsCallbackInterfaces.Contains(instance)) return; - m_Wrapper.m_CarActionsCallbackInterfaces.Add(instance); - @Movement.started += instance.OnMovement; - @Movement.performed += instance.OnMovement; - @Movement.canceled += instance.OnMovement; - } - - /// - /// Removes , and callbacks provided via on all input actions contained in this map. - /// - /// - /// Calling this method when have not previously been registered has no side-effects. - /// - /// - private void UnregisterCallbacks(ICarActions instance) - { - @Movement.started -= instance.OnMovement; - @Movement.performed -= instance.OnMovement; - @Movement.canceled -= instance.OnMovement; - } - - /// - /// Unregisters and unregisters all input action callbacks via . - /// - /// - public void RemoveCallbacks(ICarActions instance) - { - if (m_Wrapper.m_CarActionsCallbackInterfaces.Remove(instance)) - UnregisterCallbacks(instance); - } - - /// - /// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via . - /// - /// - /// If is null, calling this method will only unregister all existing callbacks but not register any new callbacks. - /// - /// - /// - /// - public void SetCallbacks(ICarActions instance) - { - foreach (var item in m_Wrapper.m_CarActionsCallbackInterfaces) - UnregisterCallbacks(item); - m_Wrapper.m_CarActionsCallbackInterfaces.Clear(); - AddCallbacks(instance); - } - } - /// - /// Provides a new instance referencing this action map. - /// - public CarActions @Car => new CarActions(this); - /// - /// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Car" which allows adding and removing callbacks. - /// - /// - /// - public interface ICarActions - { - /// - /// Method invoked when associated input action "Movement" is either , or . - /// - /// - /// - /// - void OnMovement(InputAction.CallbackContext context); - } -} diff --git a/Assets/Car/Scripts/Car/CarInputActions.cs.meta b/Assets/Car/Scripts/Car/CarInputActions.cs.meta deleted file mode 100644 index 16fbaf7..0000000 --- a/Assets/Car/Scripts/Car/CarInputActions.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: ce4bc8ceb06ac494c929dc2ee1148479 \ No newline at end of file diff --git a/Assets/Car/Scripts/Car/CarInputActions.inputactions b/Assets/Car/Scripts/Car/CarInputActions.inputactions deleted file mode 100644 index 1e3ffee..0000000 --- a/Assets/Car/Scripts/Car/CarInputActions.inputactions +++ /dev/null @@ -1,78 +0,0 @@ -{ - "name": "CarInputActions", - "maps": [ - { - "name": "Car", - "id": "c19f950c-3a7a-4a76-8523-1aa6fe6fcc3f", - "actions": [ - { - "name": "Movement", - "type": "Value", - "id": "a3955e03-93cf-4eb3-aa7e-d47eb8f6589c", - "expectedControlType": "Vector2", - "processors": "", - "interactions": "", - "initialStateCheck": true - } - ], - "bindings": [ - { - "name": "2D Vector", - "id": "4acb7ca1-35a7-4da8-8538-b419114f937a", - "path": "2DVector", - "interactions": "", - "processors": "", - "groups": "", - "action": "Movement", - "isComposite": true, - "isPartOfComposite": false - }, - { - "name": "up", - "id": "7cf87b87-53dc-449a-a3c4-f2e1f37f588a", - "path": "/w", - "interactions": "", - "processors": "", - "groups": "", - "action": "Movement", - "isComposite": false, - "isPartOfComposite": true - }, - { - "name": "down", - "id": "6f7380e9-0226-4816-92cb-3d668bd040f9", - "path": "/s", - "interactions": "", - "processors": "", - "groups": "", - "action": "Movement", - "isComposite": false, - "isPartOfComposite": true - }, - { - "name": "left", - "id": "5bf6f0e5-ee39-410a-9997-d4ef3362d1a2", - "path": "/a", - "interactions": "", - "processors": "", - "groups": "", - "action": "Movement", - "isComposite": false, - "isPartOfComposite": true - }, - { - "name": "right", - "id": "e9e1e925-1395-4159-a82a-b359f9767e77", - "path": "/d", - "interactions": "", - "processors": "", - "groups": "", - "action": "Movement", - "isComposite": false, - "isPartOfComposite": true - } - ] - } - ], - "controlSchemes": [] -} \ No newline at end of file diff --git a/Assets/Car/Scripts/Car/CarInputActions.inputactions.meta b/Assets/Car/Scripts/Car/CarInputActions.inputactions.meta deleted file mode 100644 index b6b6ad7..0000000 --- a/Assets/Car/Scripts/Car/CarInputActions.inputactions.meta +++ /dev/null @@ -1,14 +0,0 @@ -fileFormatVersion: 2 -guid: 686e90d9bee6e9d4cbff2ff59322f557 -ScriptedImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 2 - userData: - assetBundleName: - assetBundleVariant: - script: {fileID: 11500000, guid: 8404be70184654265930450def6a9037, type: 3} - generateWrapperCode: 1 - wrapperCodePath: - wrapperClassName: - wrapperCodeNamespace: diff --git a/Assets/Car/Scripts/Wheel.meta b/Assets/Car/Scripts/Wheel.meta deleted file mode 100644 index 0b91f7e..0000000 --- a/Assets/Car/Scripts/Wheel.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: cd085837d46452c48aecbbfa157c4346 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Car/Scripts/Wheel/Scripts.meta b/Assets/Car/Scripts/Wheel/Scripts.meta deleted file mode 100644 index 1fca185..0000000 --- a/Assets/Car/Scripts/Wheel/Scripts.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 59f3eacb95253684196cdabaa94f41f6 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Car/Scripts/Wheel/Scripts/WheelControll.cs b/Assets/Car/Scripts/Wheel/Scripts/WheelControll.cs deleted file mode 100644 index 5eebd94..0000000 --- a/Assets/Car/Scripts/Wheel/Scripts/WheelControll.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -public class WheelControl : MonoBehaviour -{ - public Transform wheelModel; - - [HideInInspector] public WheelCollider WheelCollider; - - // Create properties for the CarControl script - // (You should enable/disable these via the - // Editor Inspector window) - public bool steerable; - public bool motorized; - - Vector3 position; - Quaternion rotation; - - // Start is called before the first frame update - private void Start() - { - WheelCollider = GetComponent(); - } - - // Update is called once per frame - void Update() - { - // Get the Wheel collider's world pose values and - // use them to set the wheel model's position and rotation - WheelCollider.GetWorldPose(out position, out rotation); - wheelModel.transform.position = position; - wheelModel.transform.rotation = rotation; - } -} diff --git a/Assets/Car/Scripts/Wheel/Scripts/WheelControll.cs.meta b/Assets/Car/Scripts/Wheel/Scripts/WheelControll.cs.meta deleted file mode 100644 index 2d9ae63..0000000 --- a/Assets/Car/Scripts/Wheel/Scripts/WheelControll.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 484c6bad1888141449bbccb931f4b3cf \ No newline at end of file diff --git a/Assets/Character.meta b/Assets/Character.meta deleted file mode 100644 index 272fd3f..0000000 --- a/Assets/Character.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5be90bf5c38796546af4cbf973c39085 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Character/Scripts.meta b/Assets/Character/Scripts.meta deleted file mode 100644 index a486501..0000000 --- a/Assets/Character/Scripts.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ab7d5486bef4e974087db69b0c307254 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Character/Scripts/CharacterMovementCotroller.cs b/Assets/Character/Scripts/CharacterMovementCotroller.cs deleted file mode 100644 index c900210..0000000 --- a/Assets/Character/Scripts/CharacterMovementCotroller.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using UnityEngine; -using UnityEngine.InputSystem; - -public class CharacterMovementCotroller : MonoBehaviour -{ - - [SerializeField] float driveSpeed = 10f; - [SerializeField] float turnSpeed = 1000f; - - // Start is called once before the first execution of Update after the MonoBehaviour is created - void Start() - { - - } - - // Update is called once per frame - void Update() - { - EvaluateMovementInput(); - } - - private Vector3 turnLeft = new Vector3(0, -1, 0); - private Vector3 turnRight = new Vector3(0, 1, 0); - - void EvaluateMovementInput() { - Quaternion currentRotation = transform.rotation; - if (Keyboard.current.wKey.isPressed) { - Vector3 moveBy = transform.forward * driveSpeed * Time.deltaTime; - transform.position += moveBy; - } - if (Keyboard.current.sKey.isPressed) { - Vector3 moveBy = transform.forward * -1 * driveSpeed * Time.deltaTime; - transform.position += moveBy; - } - if (Keyboard.current.aKey.isPressed) { - transform.Rotate(turnLeft * Time.deltaTime * turnSpeed); - } - if (Keyboard.current.dKey.isPressed) { - transform.Rotate(turnRight * Time.deltaTime * turnSpeed); - } - } -} diff --git a/Assets/Character/Scripts/CharacterMovementCotroller.cs.meta b/Assets/Character/Scripts/CharacterMovementCotroller.cs.meta deleted file mode 100644 index bb7e742..0000000 --- a/Assets/Character/Scripts/CharacterMovementCotroller.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 30b89096a634b634ea818091dae0462f \ No newline at end of file diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity deleted file mode 100644 index 2221b04..0000000 --- a/Assets/Scenes/SampleScene.unity +++ /dev/null @@ -1,267 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 705507994} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 12 - m_GIWorkflowMode: 1 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 0 - m_LightmapEditorSettings: - serializedVersion: 12 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_ExtractAmbientOcclusion: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVREnvironmentSampleCount: 500 - m_PVREnvironmentReferencePointCount: 2048 - m_PVRFilteringMode: 2 - m_PVRDenoiserTypeDirect: 0 - m_PVRDenoiserTypeIndirect: 0 - m_PVRDenoiserTypeAO: 0 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVREnvironmentMIS: 0 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ExportTrainingData: 0 - m_TrainingDataDestination: TrainingData - m_LightProbeSampleCountMultiplier: 4 - m_LightingDataAsset: {fileID: 0} - m_LightingSettings: {fileID: 0} ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &705507993 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 705507995} - - component: {fileID: 705507994} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &705507994 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 705507993} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 1 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &705507995 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 705507993} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &963194225 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 963194228} - - component: {fileID: 963194227} - - component: {fileID: 963194226} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &963194226 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 963194225} - m_Enabled: 1 ---- !u!20 &963194227 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 963194225} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &963194228 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 963194225} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Scenes/SampleScene.unity.meta b/Assets/Scenes/SampleScene.unity.meta deleted file mode 100644 index 952bd1e..0000000 --- a/Assets/Scenes/SampleScene.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 9fc0d4010bbf28b4594072e72b8655ab -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/wheel.jpg b/Assets/wheel.jpg deleted file mode 100644 index 7cb40d2..0000000 Binary files a/Assets/wheel.jpg and /dev/null differ diff --git a/Assets/wheel.jpg.meta b/Assets/wheel.jpg.meta deleted file mode 100644 index aef8c9f..0000000 --- a/Assets/wheel.jpg.meta +++ /dev/null @@ -1,130 +0,0 @@ -fileFormatVersion: 2 -guid: 6369c12d002a1b348a0f853abe43a22d -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 13 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - flipGreenChannel: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMipmapLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 0 - wrapV: 0 - wrapW: 0 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - swizzle: 50462976 - cookieLightType: 0 - platformSettings: - - serializedVersion: 4 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - ignorePlatformSupport: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 4 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - ignorePlatformSupport: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 4 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - ignorePlatformSupport: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - customData: - physicsShape: [] - bones: [] - spriteID: - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spriteCustomMetadata: - entries: [] - nameFileIdTable: {} - mipmapLimitGroupName: - pSDRemoveMatte: 0 - userData: - assetBundleName: - assetBundleVariant: