Search Unity

How to override character animation world up / rotate animator?

Discussion in 'Animation' started by Mikhail94, Jun 23, 2019.

  1. Mikhail94


    Dec 22, 2015
    I want to create character who walks the walls. But the character moves incorrectly (only move left and right) if he is standing on the wall (input already override with new world up). Apparently the problem is in the Root Transform.

    I already tried to play with Root Transform Rotation in Animation Clip Inspector and OnAnimatorMove method but unsuccessfully. Any ideas?


    Wall (Animator circle is still horizontal)

    PS: movement through

    m_Animator.SetFloat("Forward", m_ForwardAmount, 0.1f, Time.deltaTime);
    m_Animator.SetFloat("Turn", m_TurnAmount, 0.1f, Time.deltaTime);

    in ThirdPersonController from Standart Assets.
    Last edited: Jun 23, 2019