首页 > 代码库 > [unity-16] Character Controller的Move和SimpleMove的区别
[unity-16] Character Controller的Move和SimpleMove的区别
下面是官方解释以及其翻译大意:
CollisionFlags Move(Vector3 motion);
Description
A more complex move function taking absolute movement deltas.
Attempts to move the controller by motion
, the motion will only be constrained by collisions. It will slide along colliders. CollisionFlags is the summary of collisions that occurred during the Move. This function does not apply any gravity.
角色移动只受到碰撞的约束。角色遇到碰撞时将会沿着碰撞盒滑动(你懂得)。返回值是对移动过程中遇到的碰撞信息的汇总。Move函数并不使用重力。
bool SimpleMove(Vector3 speed);
Description
Moves the character with speed
.
Velocity along the y-axis is ignored. Speed is in meters/s. Gravity is automatically applied. Returns if the character is grounded. It is recommended that you make only one call to Move or SimpleMove per frame.
[unity-16] Character Controller的Move和SimpleMove的区别
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。