Unity obstacle Analysis

Source: Internet
Author: User
  • Navmeshobstacle normal
    • Set the obstacle by setting the radius and height, and use it with navmesh.
    • Advantages:
      • Easy to use and efficient
      • Dynamic generation
    • Disadvantages:
      • It may be worn by the main character, but not found at present.
      • Fixed to cylindrical shape
  • Navmeshobstacle carve
    • Navmesh is automatically updated based on the model shape and size, and navmesh is automatically updated based on the threshold value when moving.
    • Advantages:
      • Dynamic generation. It is in normal mode when it is far away from navmesh, and the navigation grid is dynamically updated when it is close.
      • Not passed through
      • Easy to use
      • Any shape
    • Disadvantages:
      • For example, if a carve type needs to be updated, frames are dropped from 30 to 28, and the carve type needs to be updated from 30 to 22, on iPad 3.
  • Navmeshlayer
    • Multiple layers are set in navmesh to distinguish different obstacles. When the obstacles are damaged, the mavmesh retriable of navmeshagent of the main character sets the corresponding labels.
    • Advantages:
      • High Efficiency
    • Disadvantages:
      • Tedious production. You need to write a tool to simplify the process.
      • The procedure is as follows:
      • Use a fixed point to generate the corresponding navmeshlayer and adjust the size.
      • Set the corresponding Obstacle
      • When a person destroys an obstacle, the corresponding walkablelayer is updated.

Unity obstacle Analysis

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.