I’m trying to use Mecanim to animate my character instead of using the old legacy system.
Mecanim needs the animation to have Root Motion, so the animation is already moving forward and we can specify the speed of this motion in the animation state.
I have followed the tutorial on the new Learning center.
However, no matter how much speed I try to add, the amount of distance travelled by my character is more or less the same.
Video showing that the distance travelled is limited!
I created a video to show you what I mean. In this video, I’m using Mecanim animations provided from the free Project Stealth available for Unity 4.1. The version of Unity that I’m using is 4.1.2f1.
My question is how do I modify the amount of distance travelled?
Why is the amount of distance travelled by my character is capped (limited)?
Here’s a screenshot of my Blend Tree locomotion state (Walk threshold is 1.5 and Run is 5.6)
And this is the condition on the state transition between Idle and movement
Here’s a screenshot of my animation controller
Here’s a screenshot of my character’s inspector
P.S: PlayerMovement Script is unchecked on purpose. I want to see the character run by itself forward. Even if I enable PlayerMovement, then when I move forward using keyboard input, the distance travelled by my character is still limited.
Please help! I don’t know what’s wrong any more!
Maybe there's an issue with your physics components (rigidbody and capsule collider). To isolate just the animation, try previewing it on your character. Select the animation, drag your character into the preview area at the bottom of the Inspector panel, and hit play.
– TonyLi