O'Reilly logo

Building an RPG with Unity 5.x by Vahé Karamian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Character motion

Traditionally, the motion and movement of the characters were done separately through code. With the introduction of Mecanim, you are now able to apply what is called Root motion. This in return modifies the character's in-game transform based on the data in the root motion.

We are going to use root motion for our characters. Root motion works with the Animator Controller and the Animation State Machine. The Body Transform and Orientation are stored in the Animation Clip. This makes it easier for creating a state machine that plays the appropriate animation clip through the Animator Controller.

Animator Controller

In this section we will use the new Animator Controller to create our character states and determine the criteria for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required