There's more...

We've covered the most simple (yet most visible) case in this recipe. You can add more stop animations (or any transition animations) from different walk and run poses. You may need to add a stop animation for walk and run passing poses and for all the extremes, depending on your Idle pose. To do so, add more curves to your animations and react to them in the Animator Controller. For instance, you may have curves for LeftFootExtreme, RightFootExtreme, LeftFootPassing, and RightFootPassing; use them in your Walk and Run animations to trigger appropriate stop animations.

You can also check the value of an Animation Curve in runtime by checking the corresponding parameter value of the Animator Controller in scripts. To do so, use the animator.GetFloat() method, where animator is the reference to the Animator component.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.111.92