【U3D】 第三人称控制器ThirdPersonCharacter添加之后角色原地打转不移动的问题(unity5.3.5f)

可能的原因:

1、Ground Check Distance 的值设置的过小,可以尝试设置大一点比如10,这个值为多少合适受Capsule Collider的属性center y和hight影响,

确保Physics.Raycast(transform.position + (Vector3.up * 0.1f), Vector3.down, out hitInfo, m_GroundCheckDistance)为true即可,

也就是说当Object在平面上的时候,

从Object坐标原点往下发射Ground Check Distance长度的射线,要穿过地面

2、Animator的属性没有赋值

原文地址:https://www.cnblogs.com/ebel/p/5535010.html