- Home /
Does the Mecanim animator automatically put in motion?
Hey guys,
I'm currently following a tutorial on youtube about third person control code. He is using a Mecanim animator and I can't help but notice the absence of any code that actually moves the player object. All he does is take input from the xbox controller and send it straight to the animator. Does the animator automatically move the player object as well? How does it do this? Here's the video for reference: Mecanim Logic
Maybe I'm overthinking this because no one else seems to have noticed this yet.
Any help would be greatly appreciated, thanks!
Answer by matbrummitt · Nov 29, 2013 at 01:40 AM
I'm not experienced enough to say for sure, but it sounds like they're using "Apply Root motion" which is a bool variable within the inspector for the Animator component.
From the script reference:
"Apply Root Motion - Should we control the character's position from the animation itself or from script."
http://docs.unity3d.com/Documentation/Components/class-Animator.html
Oooohhhh... that makes a lot of sense actually. Thanks for the help!