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

What else can I try to prevent jitter on free look camera?

Discussion in 'Cinemachine' started by CodyCantEatThis, Jan 4, 2020.

  1. CodyCantEatThis

    CodyCantEatThis

    Joined:
    Jan 5, 2018
    Posts:
    4
    I've been using the free look camera with 0 damping and I do not see any jitter. However, I want to be able to add in a little damping on the y axis, but whenever I do so, the character starts to jitter. I've tried changing my character's rigidbody to interpolate and no interpolation, as well as changing the cinemachine brain from smart update to late update and to fixed update. So far I haven't been able to fix the jittering issue. What else is there that I can try?

    I am using the most recent version of cinemachine from the package manager, and using Unity 2019.2.13f1 if that helps.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268
    Usually jitter when damping is a sign that the character is either not animated smoothly, or that it's being animated on multiple clocks (FixedUpdate + Update).

    If your character is animating smoothly using physics exclusively then there should be no jitter when the brain is set to Fixed or Smart. Late should produce jitter in that case.

    Can you verify that your character is being animated smoothly on only one clock? If it is and you still have jitter, can you put together a lightweight sample project that shows this jitter, and PM it to me?
     
  3. CodyCantEatThis

    CodyCantEatThis

    Joined:
    Jan 5, 2018
    Posts:
    4
    I'm not sure how I would check if it's being animated on only one clock. However, I did end up fixing the problem by creating a new object and having it lerp to the player's position from its current position during fixed update. I then made the cinemachine follow this object instead of my player with damping turned off (since the damping is created by the object lerping) and kept the camera at smart update.
     
    Gregoryl likes this.