[Unity-16] The difference between the Character controller's move and the Simplemove

Source: Internet
Author: User

Here are the official explanations and their translation to the general effect:


collisionflags Move(Vector3 motion);Description

A more complex move function taking absolute movement deltas.

Attempts motion to move the controller by, the motion would only is constrained by collisions. It'll slide along colliders. Collisionflags is the summary of collisions that occurred during the Move. This function does does apply any gravity.

Character movement is constrained only by collisions. The character will slide along the collision box when it encounters a collision (you know). The return value is a summary of the collision information encountered during the move. The move function does not use gravity.


bool simplemove(Vector3 speed);Description

Moves the character with speed .

Velocity along the y-axis is ignored. METERS/S Gravity is automatically applied. Returns If the character is grounded. It's recommended that's the one call to Move or Simplemove per frame.

the speed of the y-axis will be ignored. The speed unit is meters per second. Gravity automatically takes effect. The return value is whether the role is on the ground. It is recommended to call a move or simplemove per frame

[Unity-16] The difference between the Character controller's move and the Simplemove

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.