Apply Root Motion

Apply Root Motion 应用根动作:

Apply <wbr>Root <wbr>Motion

  Should we control the character's position from the animation itself or from script.

如果我们勾选了Animator组件中的Apply Root Motion选项

角色的Transform将不能通过脚本来直接赋值,而是通过动画的运动的来改变的

如果我们不勾选

我们就可以用脚本改变角色的Tranform

 

如果在代码里有 OnAnimatorMove() //Tells Unity that root motion is handled by the script

这个函数,将会变成:

Apply <wbr>Root <wbr>Motion

 

posted @ 2015-08-02 12:16  MATU  阅读(582)  评论(0编辑  收藏  举报