Best way to prevent unnecessary input handling?

So you have a controller with analog sticks and you want to rotate your character to face certain direction. You apply the input from the controller to rotate the character to face the new direction but when you release your analog stick to return back to its resting position which is 0,0 the analog doesn’t go straight back to pointing 0,0 but gets sidetracked a bit and applies this new direction.

So any smart way to prevent this? Raise deadzone or lower the input updates?

While the input magnitude is not decreasing, apply rotation changes. While input magnitude is decreasing, do not apply rotation.

Perhaps? I’ve never tried. :slight_smile:

Just keep track of your input magnitude from last frame and compare it to the one this frame.