Search Unity

Is root motion playback supposed to be deterministic?

Discussion in 'Timeline' started by Baste, Feb 24, 2020.

  1. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,334
    We've got a character moved by root motion using the timeline, no scripts attached to the character. It seems like while the movement of the character is deterministic in the preview, it varies ever so slightly when playing back the animation in play mode. It seems like variations in framerate causes the blending of turn animations to cause the character to slightly miss the intended position.

    Is this a bug? Is the root motion playback meant to be deterministic regardless of framerate?
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Yes, it's intended to be deterministic - which is a necessity for cutscenes, However, you may have uncovered an issue that we aren't aware of. Are you able to file a bug with a repro project?
     
  3. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,334
    Thanks!

    I wanted to make sure it was actually intended to be deterministic before I started digging into it. If I can reproduce it reliably, I'll create a bug report and let you know.