Getting ready

Use the same character as in the previous recipe. Add a 180-degree turn animation, starting with the Idle pose and ending with the Idle pose rotated by 180 degrees in the vertical axis. Name the animation 180Turn for clarity. You can open the provided example Unity project and go to the Chapter 04 Character movementRecipe 05 Using root motion for a 180 degrees turn directory. You will find an Example.unity scene there. Play the game and try to walk in the direction opposite to the one the character is facing (press the down arrow). You can find the Humanoid.fbx asset in the Rigs directory with all the required animations.

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

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