Getting ready

We are going to use the same character as in the Using root motion to drive NavMesh Agents' movement with animations recipe with the Idle, WalkLeft, WalkForward, and WalkRight animations. Additionally, you should prepare a single JumpOffMesh animation with forward root motion transition (starting and ending with an Idle pose). We are going to use the NavMeshAgentWithRigidBody.cs and ClickToMove.cs scripts from the previously mentioned recipe to make the character move. You also need a chasm on your scene for the character to jump over. You can also go to the Chapter 04 Character movementRecipe 10 Adding animation to off-mesh links directory. You will find an Example.unity scene there. Open it, play the game, and try to walk to the other floating island. The character will automatically play a jump animation to traverse to the other side.

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

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