Character Controller 角色控制器
本文档主要是对Unity官方手册的个人理解与总结(其实以翻译记录为主:>)
仅作为个人学习使用,不得作为商业用途,欢迎转载,并请注明出处。
文章中涉及到的操作都是基于Unity2018.4版本
参考链接:https://docs.unity3d.com/Manual/class-CharacterController.html
The Character Controller is mainly used for third-person or first-person player control that does not make use of Rigidbody physics.
角色控制器主要用于在不使用刚体物理的前提下的第三人称或第一人称玩家,控制角色的普遍做法。
Properties | Function |
---|---|
Slope Limit | Limits the collider to only climb slopes that are less steep (in degrees) than the indicated value. |
坡度限制 | 限制对碰撞体只能爬上坡度小于此值的斜坡 |
Step Offset | The character will step up a stair only if it is closer to the ground than the indicated value. This should not be greater than the Character Controller’s height or it will generate an error. |
台阶高度 | 角色只能爬上高于当前地面高度一定范围内(此值)时才会走上楼梯。这应该不大于角色控制器的高度,否则会产生错误 |
Skin width | Two colliders can penetrate each other as deep as their Skin Width. Larger Skin Widths reduce jitter. Low Skin Width can cause the char |