Search Unity

Mecanim Blendtrees

Discussion in 'Animation' started by Deleted User, Jan 10, 2014.

  1. Deleted User

    Deleted User

    Guest

    Hello all together,

    I have a question about mecanim blendtrees.

    For example, I have 5 animations for my state 'Walk' (Key pressed):
    Walk_Left (A), Walk_Left_Sideways (WA), Walk_Forwards (W), Walk_Right_Sideways (WD), Walk_Right (D)

    At the moment I have one Blendtree with 3 Motions with the parameter direction. (left, forwards, right) and I have a second one with the others (left_sideways, right, sideways) but in another state with the transition bool sideways = true.

    $walk_blendtree.png

    It works but it doesn't look nice blended. So I want to change this in one single blendtree with all my animations - not in two.
    But I don't know how.. I tried 2D Blendtrees, but it doesn't work..

    Can somebody help me please?

    Best regards,
    Sarah
     
  2. wizardious

    wizardious

    Joined:
    Dec 31, 2009
    Posts:
    189
  3. Deleted User

    Deleted User

    Guest

    Hey,

    thanks for your reply, but I already found a solution.
    I made a 2D Freeform Blendtree with is controlled by the two parameters speed and direction. So i can say if speed = 1 and direction = 1 go right sideways, or speed = 0 and direction = 1 go right and so on. So all is working fine now :)