Search Unity

Mixing physics and animation

Discussion in 'Animation' started by ItsaMeTuni, Mar 19, 2018.

  1. ItsaMeTuni

    ItsaMeTuni

    Joined:
    Jan 19, 2015
    Posts:
    44
    I'm trying to make so my character has ragdoll arms. I was able to achieve that if I only had a walking animation with a mask for the legs. Then I want my character to play a melee hit animation only from spine02 above so I made a layer called "Arms", added a mask for the arms and set it to override. The problem is: when I add a state to the Arms layer containing an animation for the arms (even with the layer AND the animation masked) the arms won't act as ragdoll anymore, even when the clip is not playing. How do I fix that? Here are some screenshots:
    Screenshot_2.png

    Screenshot_3.png

    Screenshot_8.png

    Screenshot_6.png

    Here I removed the attack state in the animator so you could see how it should be.
    Screenshot_7.png

    I might be missing something really simple. Thanks for any help!
     
  2. ItsaMeTuni

    ItsaMeTuni

    Joined:
    Jan 19, 2015
    Posts:
    44
    I just found out that if you set 'motion' to none on the Attack state, start the game and then set 'motion' to the hit animation it will work as expected. Looks like a bug... Still not a fix though, I really don't want to write a script just for that.
     
    theANMATOR2b likes this.
  3. Goatogrammetry

    Goatogrammetry

    Joined:
    Apr 27, 2017
    Posts:
    197
    What about making the layer additive?
     
  4. ItsaMeTuni

    ItsaMeTuni

    Joined:
    Jan 19, 2015
    Posts:
    44
    Already tried it. Nothing changed.