I need it to return to 0 so my character goes back to idle animation.
1 Answer
1Turns out you need to use Input.GetAxisRaw if you want it to go back to 0.
I need it to return to 0 so my character goes back to idle animation.
Turns out you need to use Input.GetAxisRaw if you want it to go back to 0.
GetAxis is affected by things like gravity in the input settings - it's a matter of 'what fits your needs best' but you can set gravity to zero for that axis if you need instant response. But yes, AxisRaw is nice for exact input.
– LoiusThanks for the extra info.
– GenOli