Search Unity

Legasy animation in Mecanim without root motion

Discussion in 'Animation' started by justtime, Sep 19, 2014.

  1. justtime

    justtime

    Joined:
    Oct 6, 2013
    Posts:
    424
    Hi. For my project i use mecanim and when i started to add some attack animations i faced with the problem. My attack animations includes some root motions. And i have 2 states
    1)When Animator root motion enabled, turning attack animations plays onlu to start point of turning.
    2)When its enabled, animations turning hero, but there another problems
    a)Hero not returning at the same place(at the same rotation)
    b)When it blended with idle animation on Exit time, its not fully played(attack animation plays ~ 2/3 and fade into idle).
    3)Its brings broblems with rotation control, couse hero rotation relative from 3d person camera rotation. And other animations with enabled Animator root motion behave strangely, for example jump.
    Solution to the problem seems to me t to disable root motion on spinning attack animations.
    Desired behavior
    1)Use mecanim for animation
    2)Animator withot root motions
    3)Root motions spining attack animations plays full and not rotationg or move hero.

    I read a ton of manuals, but unfortunately don't understand how to solve this. All hope for you, thanks =)