---Steering

function Steering()
	if _MSteer then
		local mST = ((mouse.X-mouse.ViewSizeX/2)/_Tune.MSteerWidth)
		if math.abs(mST)<=_Tune.MSteerDZone then
			_GSteerT = 0
		else
			_GSteerT = (math.max(math.min((math.abs(mST)-_Tune.MSteerDZone),(1-_Tune.MSteerDZone)),0)/(1-_Tune.MSteerDZone))^_Tune.MSteerExp * (mST / math.abs(mST))
		end
	end
	if _GSteerC < _GSteerT then
		_GSteerC = math.min(_GSteerT,_GSteerC+_Tune.SteerSpeed)
	else
		_GSteerC = math.max(_GSteerT,_GSteerC-_Tune.SteerSpeed)
	end
	local sDecay = (1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer))
	if car.Wheels:FindFirstChild("FL")~= nil then
		if _GSteerC>= 0 then
			car.Wheels.FL.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
		else
			car.Wheels.FL.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
		end
	end
	if car.Wheels:FindFirstChild("FR")~= nil then
		if _GSteerC>= 0 then
			car.Wheels.FR.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerInner*sDecay),0)
		else
			car.Wheels.FR.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad(_GSteerC*_Tune.SteerOuter*sDecay),0)
		end
	end
end
