Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

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. NamanSharma666

    NamanSharma666

    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:

    CompZen likes 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.