Search Unity

Question Dolly track animation doesn't follow animator keyframe

Discussion in 'Cinemachine' started by WildDagger, Apr 17, 2022.

  1. WildDagger

    WildDagger

    Joined:
    Jan 23, 2013
    Posts:
    7
    I used timeline and cinemachine to make skill animation in my game.
    However, I found my dolly track does not follow my setting.


    Like this picture, I used Virtual Camera and Dolly Track to move my camera from frame 0 to frame 70, and position and rotation of next virtual camera is same of position and rotation on track end.
    However I found camera changed though my dolly track does not move to end.


    I used debug and found that when frame is 70, position of dolly track is not 2 in my setting but 1.5.
    Could someone can help that why it happened and how to fix it?

    (I tried to change Frame Rate from 60 to 30 because I think maybe it caused this problem but not use)

    2022/4/19 Add:

    This is I want and expected.

    This is what I got.

    I have already tried restart Unity and delete animation then re-created, NO USE.

    ......Should I give up and use pre-render video instead?
     
    Last edited: Apr 19, 2022
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    If you animated the path position to 2 on the keyframe then it should be 2 on the keyframe. There is no code in CM that will interfere with that. It's not clear to me what's going on in your second video. I don't see the CM tracks in your timeline. Can you post a video that shows more clearly your actual result? It would help also to have a top-down ortho setting on your scene view, to see more clearly what's happening.
     
  3. WildDagger

    WildDagger

    Joined:
    Jan 23, 2013
    Posts:
    7

    I don't know is that clearly.
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    No, it is not really clear.

    I think there is a problem here, but since I don't know what is in your scene and can't read the fuzzy text, I can't say much more than that.

    upload_2022-4-19_12-0-54.png
     
  5. WildDagger

    WildDagger

    Joined:
    Jan 23, 2013
    Posts:
    7

    I don't know what you want is that?
    I did not set any script in timeline.
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    I'm trying to understand what is actually happening in your scene.
    This is very difficult with the information you have given.
    Would you be willing to send me a simple test project that reproduces this problem? That might be easier than trying to explain.
     
    Last edited: Apr 20, 2022
  7. WildDagger

    WildDagger

    Joined:
    Jan 23, 2013
    Posts:
    7
    https://drive.google.com/file/d/1dzNv3btn5aSsCtDV5mN1Rawjt7CDR7CS/view?usp=sharing
    Like this? I changed models into simple cubes and still same problem.
    Thanks a lot.
     
  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    Thanks for the upload but it's not enough for me to see the problem. If you could package it into a small standalone test project that I can open and run, that might be better.