角色控制器 Character Controller

角色控制器主要用于第三人称或第一人称游戏主角控制,并不使用刚体物理效果。


The Character Controller 角色控制器示例

Properties 属性

  • Height
    高度
    The Character's Capsule Collider height. Changing this will scale the collider along the Y axis in both positive and negative directions.
    角色的胶囊碰撞器高度。改变其大小会使碰撞器在Y轴方向3两端伸缩。
  • Radius
    半径
    Length of the Capsule Collider's radius. This is essentially the width of the collider.
    胶囊碰撞器的半径长度。级碰撞器的宽度。
  • Slope Limit
    坡度限制
    Limits the collider to only climb slopes that are equal to or less 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.
    角色可以迈上的最高台阶高度。
  • Min Move Distance
    最小移动距离
    If the character tries to move below the indicated value, it will not move at all. This can be used to reduce jitter. In most situations this value should be left at 0.
    如果角色移动的距离小于该值,那角色就不会移动。这可以避免颤抖现象。大部分情况下该值被设为0。
  • 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 character to get stuck. A good setting is to make this value 10% of the Radius.
    皮肤厚度决定了两个碰撞器可以互相渗入的深度。较大的皮肤厚值度会导致颤抖。小的皮肤厚度值会导致角色被卡住。一个合理的设定是使该值等于半径(Radius)的10%。
  • Center
    中心
    This will offset the Capsule Collider in world space, and won't affect how the Character pivots.
    该值决定胶囊碰撞器在世界空间中的位置,并不影响角色的行动。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值