Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question [Solved] Input System Cinemachine Stutter

Discussion in 'Input System' started by geoh12, Aug 15, 2023.

  1. geoh12

    geoh12

    Joined:
    Jul 1, 2015
    Posts:
    2
    Hello, I've been trying to create a First person camera using Cinemachine and the Input System. The issue I've been having is that it's noticeably jittery/stuttering. The thing is when I use the old input system (Input.GetAxis) it works just fine. I even tried starting with a new project and a fresh install and I'm still encountering these issues. Right now for the input action types for my look action is set to Value/Vector 2.

    I've tried using POV or just a script to control the camera and it's all still very jittery with the new Input system. I've seen other people have the same issue but never a definitive answer.


    Here's a video of the stuttering.

     
  2. geoh12

    geoh12

    Joined:
    Jul 1, 2015
    Posts:
    2
    I've figured out the problem. It's not an issue with the input system. You just need to scale down the input values. It's jitteryness is caused by the input system giving you a much bigger number than the old input system axis values.

    So I added a processor in the input system to scale the values by .05 and it smoothed it out and stopped the choppy mouse look. Not sure if there's a better way of doing this. Normalizing it doesn't seem to make it better.

    I wonder if other projects do this to smooth out the camera movement?