I am currently trying to set up a locomotion system. I have set up the locomotion just how the docs have, but when my character tries to move he simply slides. Somehow the animations are not getting triggered properly. If i put the animation to start automatically the character will walk, but he walks in his idle position.
Below is the project files i know I'm probably forgetting to do something so simple but i have been hitting my head on a wall trying to figure out what i did wrong. Any help would be greatly appreciated.
You have to rename your Motion Group to the animation name that you are trying to call. I ran into this same problem - I have one animation called ‘run’ in the Leg Controller script - Source Animations. The default name of the motion group was called ‘MotionGroup1’. So, in code, when I am trying to play this animation, I was trying to reference ‘run’. You can either change ‘run’ in script to ‘MotionGroup1’ to match, or change the motion group to ‘run’ to match your script. Either way, they both need to match - the name of the animation you are trying to play in the script and the name of the motion group in your Leg Controller.
You have to rename your Motion Group to the animation name that you are trying to call. I ran into this same problem - I have one animation called ‘run’ in the Leg Controller script - Source Animations. The default name of the motion group was called ‘MotionGroup1’. So, in code, when I am trying to play this animation, I was trying to reference ‘run’. You can either change ‘run’ in script to ‘MotionGroup1’ to match, or change the motion group to ‘run’ to match your script. Either way, they both need to match - the name of the animation you are trying to play in the script and the name of the motion group in your Leg Controller.