Navigation system--03 separating grid links

Source: Internet
Author: User

Study Notes for beginners, please correct me if you have any mistakes. The number is also please point out, thank you.

The detach grid link (Off-mesh links) is used to create a path between non-linked navigation areas, which we can interpret as a "portal"

Create a new empty game object named off Mesh Link left in the lower right corner of the terrain

Create a new empty game object named off Mesh Link right in the lower left corner of the terrain

After baking off mesh link left and off mesh link right is displayed in two black dots with a black line link

Finally, create a new empty game object and name it off mesh link to add the off Mesh link component and specify start as off mesh link left,end to off mesh link right

Running the scene, the cylinder navigation agent moves to the off mesh link right after moving to the off-mesh link and finally to the end

Off-mesh Links Parameters

Start: Start

End: End point

Cost Overide: Weight is less than 0 o'clock, cost is the cost of the navigation type set in the Navigation area column below, the value is greater than or equal to 0 o'clock the burden of the link, the default is-1

Bi-directional: Whether it is a two-way link, default activation

Activated: activation, default activation

Auto Update positions: Active, the off Mesh Link is automatically updated each time the start and end points are adjusted. Do not activate, adjust start and end points after the off Mesh Link is not updated

Navigation area:off Mesh Link Zone type

Navigation system--03 separating grid links

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.