Search Unity

Avatar Mask can not override hip transform?

Discussion in 'Animation' started by MinterMinus, Apr 23, 2018.

  1. MinterMinus

    MinterMinus

    Joined:
    Apr 23, 2018
    Posts:
    2
    I have a shoot animation, which make character bend his back a little bit.


    Now I want this character able to Run And Shoot, so I create a animator controller and make 2 layers.

    First layer "Free" is for Run animation, second layer "AimOffset" is for Shoot animation.
    "AimOffset" layer's Blending set to Override, and a upper body mask added.
    But it doesn't work properly.


    I actually make 2 Upper Avatar Masks, one include root, another one not.
    But unfortunately, neither of them give me a decent result.

    The not-include-root one not bend character's back at all, it looks like Shoot animation's hip transform is not considered, just being ignored, animator still use Run animation's hip transform.

    I also tried to active the circle under figure, I think it represents root transform, but it still can't solve this problem.Yes, character's back is bended, which is what I want, but his feet is not on the ground, he's float, that cause a new problem.


    I want this character bend his back and his foot on the ground.
    I have spent hours try to solve this, but I still have no clue, anybody help?
    Files here:http://www.mediafire.com/file/at5f2ik173v1j26/AnimTest.rar
    Many thanks!
     
    Last edited: Apr 23, 2018
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    Research transform mask.
    You can define the hip bone in the transform mask dialogue.
     
  3. MinterMinus

    MinterMinus

    Joined:
    Apr 23, 2018
    Posts:
    2
    Transform mask?
    Is this the thing you said?


    It's not going to work since character's animation type is Humanoid.
     
  4. davidrochin

    davidrochin

    Joined:
    Dec 17, 2015
    Posts:
    72
    I am facing a similar problem. Did you find a solution?
     
  5. starflare

    starflare

    Joined:
    Jan 25, 2017
    Posts:
    1
    Bump! I'm facing the same issue and it would be great how to fix it :)
     
  6. Zer0Frost

    Zer0Frost

    Joined:
    Jan 9, 2015
    Posts:
    5
    Transform Mask doesn't work on humanoid avatars

    Ony workaround: Don't use Humanoid avatar setup :(
     
    Last edited: Jan 23, 2019
  7. UnitedBluff

    UnitedBluff

    Joined:
    Apr 19, 2015
    Posts:
    15
    Xerfrost that is a fantastic option! Or better yet, not use unity at all! Every day you run your head against the wall using this engine.
     
    Waddler, laranthir and Zarezy like this.
  8. JeroenT

    JeroenT

    Joined:
    Sep 20, 2016
    Posts:
    2
    For anyone else: I stumbled on this page while looking for humanoid + avatar mask problems. Didn't find my solution here but elsewhere. In the end it proves that the layer order in the animator window is VERY important. Putting the layers in the right order is apparently a big deal.

    I had three layers, base layer with most animations, and for 3rd person aiming I had top body and lower body layers, each with their own avatar mask. The bad order was:

    1. Base Layer
    2. UpperBodyAiming (upper torso aiming)
    3. LowerBodyAiming (leg movement)

    I got wiggly animations with weird extra little rotations and nothing ever fully worked together well.

    Putting the lower body layer ABOVE the top body layer actually made it work...

    1. Base Layer
    2. LowerBodyAiming (leg movement)
    3. UpperBodyAiming (upper torso aiming)

    I was trying to find solutions in every direction for days on end, but this is the only one that actually worked.

    To add more, my LowerBodyMask also required the torso to be green (arms,hands and head red). My UpperBodyMask also had the torso green, and the root circle on the bottom was also green.
     
    Last edited: Apr 1, 2021
  9. JackPotato

    JackPotato

    Joined:
    Jul 16, 2018
    Posts:
    7
    Unfortunately JeroenT's solution doesn't work for me. Does anyone have a solution to this? It seems weird to me that the Hip bone would be considered the root and not included in the upper body avatar mask selection.
     
    anisimovdev likes this.