码迷,mamicode.com
首页 > 编程语言 > 详细

[unity-16] Character Controller的Move和SimpleMove的区别

时间:2014-11-23 23:31:50      阅读:292      评论:0      收藏:0      [点我收藏+]

标签:des   style   io   ar   color   使用   sp   strong   on   

下面是官方解释以及其翻译大意:


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.

Y轴的速度将会被忽略。速度单位是米每秒。重力自动生效。返回值是角色是否着地。建议每帧之调用一次Move或者SimpleMove

[unity-16] Character Controller的Move和SimpleMove的区别

标签:des   style   io   ar   color   使用   sp   strong   on   

原文地址:http://blog.csdn.net/alexander_xfl/article/details/41419723

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!