Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Character can't move when adding multi-parent constraint (animation rigging)

Discussion in 'Editor & General Support' started by cbadenhausen, Jan 17, 2021.

  1. cbadenhausen

    cbadenhausen

    Joined:
    Dec 25, 2020
    Posts:
    6
    I am following along with this tutorial

    My end goal is to attach a gun to my characters hand and aim at the center of the screen with the gun. (A third person shooter). It seems like the best way to do this is with animation rigging. However whenever I add the multi parent constraint I end up getting an issue. It's a big one also, my character is not able to move. I am somewhat new to unity and this is my first forum post so if there's any information you need me to include just let me know, Thanks. Screen Shot 2021-01-16 at 9.34.53 PM.png
     

    Attached Files:

    mmcveigh33 likes this.
  2. mmcveigh33

    mmcveigh33

    Joined:
    May 23, 2019
    Posts:
    3
    Try checking "apply root motion" in the animator component of your character
     
    inura1201 likes this.
  3. VaibhavJaiswal

    VaibhavJaiswal

    Joined:
    Mar 10, 2020
    Posts:
    2
  4. cbadenhausen

    cbadenhausen

    Joined:
    Dec 25, 2020
    Posts:
    6
    you need to use root motion
     
  5. RandomVariableee

    RandomVariableee

    Joined:
    Jan 1, 2022
    Posts:
    1
    yeah it will work
     
  6. sagarhinsu

    sagarhinsu

    Joined:
    Nov 13, 2021
    Posts:
    2
    I was also facing the same issue.
    Apply Root Motion to Animator and increase the Walk and Run speed by 10 times.
    This should fix your issue
     
  7. andypett

    andypett

    Joined:
    Jun 11, 2019
    Posts:
    14
    What if I don't want to use root motion?
     
  8. daniziognr17

    daniziognr17

    Joined:
    Aug 31, 2020
    Posts:
    2
    Did you find a solution?
     
  9. daniziognr17

    daniziognr17

    Joined:
    Aug 31, 2020
    Posts:
    2
    I found a solution that might help you. in your character script, declare a private void OnAnimatorMove

    private void OnAnimatorMove() {}

    And check it solved
     

    Attached Files:

    kingchizeyuk and CompZen like this.
  10. CompZen

    CompZen

    Joined:
    Apr 17, 2021
    Posts:
    3
    Thank you so much! I was completely lost, and your solution helped me :)
     
  11. mp3magnat

    mp3magnat

    Joined:
    Aug 2, 2020
    Posts:
    3
    OMG ! Thank you very much for help !
     
  12. rogueofligth21

    rogueofligth21

    Joined:
    Feb 24, 2023
    Posts:
    1
    what does it even mean?
    there is no mimage of what to do

    What the hell i need to do?
     
  13. daddydooby420

    daddydooby420

    Joined:
    Aug 23, 2020
    Posts:
    1
    Apparently all you need is the OnAnimatorMove() method nothing else and it works. No clue why it works but it does.
     
  14. inura1201

    inura1201

    Joined:
    Jun 17, 2022
    Posts:
    1
    IT WORKS!THANK YOU.
     
  15. SoYouSay

    SoYouSay

    Joined:
    Feb 21, 2023
    Posts:
    2
    The OnAnimatorMove() method is a callback function in Unity that is automatically called by the Animator component. By implementing this method in your script, you can override the default root motion handling behavior.
     
  16. ab_raiyan

    ab_raiyan

    Joined:
    Dec 19, 2015
    Posts:
    1
    I may have found a solution. Turn on RootMotion in Animator regardless of if you are using any root motion Anim or not.
     
  17. kingchizeyuk

    kingchizeyuk

    Joined:
    May 27, 2019
    Posts:
    2
    you are fxxking genius.