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 Objects
Sound Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
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
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

障碍胶囊

The Obstacle Capsule is a capsule-shaped obstacle that is detected and bypassed by other objects during pathfinding. The Obstacle Capsule can be added, for example, for the capsule-shaped nodes (trunks, columns, chimney shafts and so on) that are placed inside a navigation area and should be bypassed.Obstacle Capsule是一个胶囊状的障碍物,在寻路过程中会被其他物体检测到并绕过。例如,可以将Obstacle Capsule添加到放置在导航区域内且应绕开的胶囊状节点(树干,圆柱,烟囱井筒等)上。

An Obstacle Capsule and a furObstacle Capsule和毛发

The size of the Obstacle Capsule is set using the following parameters:使用以下参数设置Obstacle Capsule的大小:

  • Radius — the radius of the cylinder and hemispheres of the capsule.Radius —圆柱体的半径和胶囊的半球。
  • Height — the height of the cylinder of the capsule.Height —胶囊圆柱体的高度。

See also也可以看看#

Adding Obstacle Capsule添加障碍胶囊#

To add an Obstacle Capsule to the scene via UnigineEditor:通过UnigineEditor将Obstacle Capsule添加到场景中:

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

  3. Click somewhere in the world to place the obstacle.单击世界上的某个地方以放置障碍物。

A new Obstacle Capsule is added to UnigineEditor and you can edit it via the Parameters window. See also the example on obstacle usage.新的Obstacle Capsule已添加到UnigineEditor,您可以通过Parameters窗口对其进行编辑。另请参阅例子关于障碍物的使用。

Editing Obstacle Capsule编辑障碍物胶囊#

On the Node tab of the Parameters window, you can adjust the following parameters of the Obstacle Capsule: Parameters窗口的Node选项卡上,可以调整Obstacle Capsule的以下参数:

Obstacle Mask The Obstacle mask of the Obstacle Capsule must match the Obstacle mask of the route that is calculated during pathfinding. Otherwise, the obstacle is not taken into account during pathfinding. Also by using the Obstacle mask, you can specify Obstacle Capsule that should be ignored during pathfinding.Obstacle CapsuleObstacle掩码必须比赛在寻路过程中计算的路线的Obstacle掩码。否则,在寻路过程中不会考虑障碍物。同样,通过使用Obstacle掩码,您可以指定在寻路过程中应忽略的Obstacle Capsule
Radius Radius of the capsule, in units.Obstacle Capsule的半径,以单位为单位。
Height Height of the capsule, in units.Obstacle Capsule的高度,以单位为单位。
最新更新: 2021-04-29
Build: ()