I have a car game and the idea is that the player is drunk. I want to have a delayed input from the mouse, where you move the mouse side to side to turn.
How can I setup a constant delay between the input the user gives and the turn amount of the car?
Right now I have this:
h = Mathf.Lerp(h, (((Input.mousePosition.x / Screen.width) * 2) - 1), Time.deltaTime * 2);
What happens is the turn is delayed, but is very slow, in other words, if I move the mouse very fast, the car turns very slowly, but if I crank up the multiplier for
Time.deltaTime, the car turns faster, but delay effect is minimized.
How else could I do this?