This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
创建内容
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

导航部门

警告
3D navigation feature is experimental and not recommended for production use.3D导航功能是实验性的,不建议用于生产环境。

A Navigation Sector is a cuboid-shaped navigation area that enables the following:Navigation Sector是长方体形的导航区域,可启用以下功能:

  • Both the 2D and 3D routes can be calculated within navigation sectors.2D和3D路线都可以在导航扇区内计算。

    • In case of 2D routes, a point moves in a lower plane of the navigation sector (Z coordinate is not taken into account). If the height or radius set for this point is greater than the size of the navigation sector, such sector is discarded from pathfinding.在2D路线的情况下,点在导航扇区的下平面中移动(不考虑Z坐标)。如果为此点设置的高度或半径大于导航扇区的大小,则将从寻路中丢弃该扇区。
    • In case of 3D routes, a point moves in three dimensions. If the radius set for this point is greater than the size of the navigation sector, such sector is discarded from pathfinding.如果是3D路线,则点将在三个维度上移动。如果为此点设置的半径大于导航扇区的大小,则将从寻路中丢弃该扇区。
  • Routes can be calculated within several intersecting navigation sectors. The intersecting sectors are treated as a single navigation area.可以在几个相交的导航扇区内计算路线。相交的扇区被视为单个导航区域。

    注意
    In case of 2D routes, the height difference between the intersecting sectors must not exceed the maximum height set for the 2D route; otherwise these sectors are discarded from pathfinding.对于2D路线,相交扇区之间的高度差不得超过为2D路线设置的最大高度;否则,将这些扇区从寻路中丢弃。

See also也可以看看#

  • The NavigationSector class to manage navigation sectors via APINavigationSector类,用于通过API管理导航扇区
  • The PathRoute class to create 2D and 3D routes inside navigation sectorsPathRoute类可在导航扇区内创建2D和3D路线
  • The article on Creating Routes的文章创建路线
  • A set of samples located in the <UnigineSDK>/data/samples/paths folder:位于<UnigineSDK>/data/samples/paths文件夹中的一组样本:

    • route_00
    • route_01
    • route_02
    • sector_00
    • sector_01
    • sector_02

Creating Navigation Sector创建导航部门#

To create a navigation sector via UnigineEditor:要通过UnigineEditor创建导航扇区,请执行以下操作:

  1. Run UnigineEditor.跑步UnigineEditor。
  2. On the Menu bar, click Create -> Navigation -> Navigation Sector.在菜单栏上,单击Create -> Navigation -> Navigation Sector

  3. Click somewhere in the world to place the navigation sector.单击世界上的某个地方以放置导航部门。

    A navigation sector导航部门

    A new navigation sector is added to UnigineEditor and you can edit it via the Parameters window.新的导航扇区已添加到UnigineEditor中,您可以通过参数窗户。

注意
The created navigation sector only provides an area within which 2D and 3D routes are calculated. The routes themselves should be created from the code.创建的导航扇区仅提供一个在其中计算2D和3D路线的区域。路线本身应该是从代码创建

Editing Navigation Sector编辑导航区#

In the Node tab of the Parameters window, you can adjust the following parameters of the navigation sector:Parameters窗口的Node选项卡中,可以调整导航扇区的以下参数:

Navigation Mask The Navigation mask of the navigation sector must match the Navigation mask of the route that is calculated within it. Otherwise, the sector does not participate in pathfinding. By using the Navigation mask, you can specify sectors that must be ignored during pathfinding.导航扇区的Navigation掩码必须比赛在其中计算的路线的Navigation掩码。否则,该部门将不参与寻路。通过使用Navigation掩码,可以指定在寻路过程中必须忽略的扇区。
Quality Quality of optimization for route calculation. This value specifies the number of iterations that are used to find the shortcut. The higher the value, the longer the route calculation will take.路线计算的优化质量。此值指定用于查找快捷方式的迭代次数。值越高,路线计算将花费的时间越长。
Velocity Scaling factor for velocity of the point that moves inside the navigation sector along the calculated route.沿计算的路线在导航扇区内移动的点的速度的比例因子。
Dangerous

Danger factor that indicates if a moving point should try to avoid the navigation sector.危险因素,指示移动点是否应尽量避开导航区域。

注意
If the danger factor exceeds the maximum danger factor set for the route, the navigation sector is excluded from pathfinding calculations.如果危险因素超过为路线设置的最大危险因素,则导航扇区将从寻路计算中排除。
Size Size of the navigation sector's box along the axes.沿轴的导航扇形框的大小。
最新更新: 2021-12-13
Build: ()