Search Unity

Question AutoDolly jitter.

Discussion in 'Cinemachine' started by Keenao, May 9, 2020.

  1. Keenao

    Keenao

    Joined:
    Apr 5, 2014
    Posts:
    4
    Hi,

    I have a problem, when I track my player with AutoDolly, there are little hiccups that I can't fix.
    If someone coud help me that would be appreciated.

    So the camera tracks the player smoothly for ... I dunno... 5 units, and then, little hiccup, and smooth again. It's as if the track was jumpy or something.

    Regards
     
    Last edited: May 9, 2020
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    If the shape of your track is concave around the player, this can happen. The "auto-dolly" feature tries to find the point on the track that's closest to the player. If the path forms an arc around the player, then the closest point can be spread out over a segment of the curve. As an extreme example, think of a track in a perfect circle centered around the player. Where is the closest point?

    The solution is to fix the track shape. If you can't do that, then you might get improvement by increasing the Z damping on the TrackedDolly behaviour, but those results will likely be imperfect.