Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Jittery Input Values with Gamepad Stick

Discussion in 'Input System' started by Lunte, Mar 17, 2022.

  1. Lunte

    Lunte

    Joined:
    Nov 14, 2020
    Posts:
    6
    Hi, i got these jittery values when i use my left gamepad stick.

    Is there any way to make it stay on e.g. 0.65 and then 0.63 or so when moving down. but make it a steady value? so when it comes from 0.63 it stays there until it hits 0.65 and when it comes from 0.65 it stays there until it hits 0.63. It seems so trivial, but i don't find a solution. lerping only makes the value move slower to the final shaky part again. Rounding doesn't seem to solve the issue as well. I ask, because this way my character is flickering between idle and walk when i hold the stick in a certain position. I use unitys new input system.

    thanks in advance for any tip!
     

    Attached Files:

  2. Lunte

    Lunte

    Joined:
    Nov 14, 2020
    Posts:
    6
    bump