void AddMotorAndSteering()
        {
            //Manual control
            //float motorTorque = maxMotorTorque * Input.GetAxis("Vertical");
            //float steeringAngle = CalculateSteerAngle() * Input.GetAxis("Horizontal");

            float steeringAngle = 0f;
            float motorTorque   = 0f;
            float brakeTorque   = 0f;

            //Self-driving control
            if (carMode == CarMode.Forward && currentSpeed < carData.GetMaxSpeed())
            {
                motorTorque = carData.GetMaxMotorTorque();

                //Get the steering angle for the steering wheels
                //Has to be in either forward or reverse, because we need a path to
                //get the steering angle
                steeringAngle = GetSteeringAngle();
            }
            else if (carMode == CarMode.Reverse)
            {
                //Reversing is slower
                motorTorque = -carData.GetMaxMotorTorque() * 0.5f;

                //Get the steering angle for the steering wheels
                steeringAngle = GetSteeringAngle();
            }
            //Stop
            else
            {
                brakeTorque = carData.GetMaxBrakeTorque();
            }



            //Add everything to the wheels
            foreach (AxleInfo axleInfo in axleInfos)
            {
                if (axleInfo.steering)
                {
                    axleInfo.leftWheel.steerAngle  = steeringAngle;
                    axleInfo.rightWheel.steerAngle = steeringAngle;
                }
                if (axleInfo.motor)
                {
                    axleInfo.leftWheel.motorTorque  = motorTorque;
                    axleInfo.rightWheel.motorTorque = motorTorque;
                }

                axleInfo.leftWheel.brakeTorque  = brakeTorque;
                axleInfo.rightWheel.brakeTorque = brakeTorque;

                //Make to wheel meshes rotate and move from suspension
                ApplyLocalPositionToVisuals(axleInfo.leftWheel);
                ApplyLocalPositionToVisuals(axleInfo.rightWheel);
            }
        }