Search Unity

Walk-Run blend three glitchy thanslations

Discussion in 'Animation' started by Deadcow_, Mar 9, 2021.

  1. Deadcow_

    Deadcow_

    Joined:
    Mar 13, 2014
    Posts:
    128
    I've got two animations for walk and run states. I'd like to somehow blend between them.
    Resulting animation is "stumbling". Probably because of different length of source animations.
    I never worked with blend threes (and animations in general), so I'm not sure how to deal with it.

    Walk
    https://habrastorage.org/webt/_7/tr/ix/_7trixv7pgqehe6pihnqiwgteue.gif




    Run


    0.5 blend
     
  2. bobadi

    bobadi

    Joined:
    Jan 3, 2019
    Posts:
    280
    you have to synchronize the animations.

    whatever foot you start walk animation, the same should be for the run animation.
    (so they are blended by normalized time, approx. in same pose they are in walk/run)

    also the number of loops: I thought you can get away with if walk is 2 loops, run is 1
    but no, just checked, it will mess up (walk making two steps while run 1, so it blends wrong)
    your walk seems like playin the same twice, so just make it one loop
     
    Last edited: Mar 10, 2021
    Deadcow_ likes this.
unityunity