Search Unity

Damping on Body Transposer jitter at constant 60 FPS

Discussion in 'Cinemachine' started by usernameHed, Aug 19, 2019.

  1. usernameHed

    usernameHed

    Joined:
    Apr 5, 2016
    Posts:
    93
    Hello,

    I have a jittering camera when i put some Damping on the Body of a Transposer...
    I move my player in Update, and the CinemachineBrain is set to LateUpdate. When I have 0 damping, it work perfectly, when I have, it jitter:


    Here is the result of the lag:


    Here is the brain & vcam involved:



    My Unity version is 2019.2.0f1
    My Cinemachine version is 2.3.4

    I have also tried SmartUpdate: it's the same. And FixedUpdate is worst ;)
    I move my player on Update, with of course Time.deltaTime.

    I have tested in build and in editor: the result is the same.
    I have this settings applyed to the game:

    Application.targetFrameRate = 60;
    QualitySettings.vSyncCount = 1;

    I really don't know why there is jittering on the damping... I have everything up to date, and it seems like i do everything correctly :/

    Thanks you
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    You will get jitter if your target (_followHandle or _animHandle) is not moved smoothly. Very likely that is what's happening. You need to guarantee that your target is animated smoothly, otherwise you won't be able to use damping.