- Home /
Is Input.GetAxis meant to return to 0 on key up?
I need it to return to 0 so my character goes back to idle animation.
Comment
Best Answer
Answer by GenOli · May 03, 2013 at 03:07 PM
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.
Your answer
