首先給出兩者的聖典:
CollisionFlags Move(Vector3 motion);
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);
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