Hello,
I was wondering if I could modify the unity demo car script so as to accelerate the car automatically. I should only steer the car.
Any suggestions?
throttle=Input.GetAxis("Vertical");
steer =Input.GetAxis("Horizontal");
Hello,
I was wondering if I could modify the unity demo car script so as to accelerate the car automatically. I should only steer the car.
Any suggestions?
throttle=Input.GetAxis("Vertical");
steer =Input.GetAxis("Horizontal");
Nope. You could try something like:
throttle = (1.0 - Mathf.Abs(Input.GetAxis("Horizontal")))* factor;
Where ‘factor’ is a number between 0 and 1 that you define.