用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:navmesh:navmesh

NavMesh 导航网格

Description 描述

Singleton class to access the baked NavMesh.

一个用来访问烘培过的NavMesh的类。

The NavMesh is a class can be used to do spatial queries, like pathfinding and walkability tests, set the pathfinding cost for specific area types, and to tweak global behavior of pathfinding and avoidance.

NavMesh 是一个能够用在空间查询方面的类。例如 寻路和可通过检测中,为特定的区域设置寻路的代价,和对寻路和躲避进行全局的调整。

In order to use the spatial queries, you need to first bake NavMesh for your Scene.

为了使用空间查询,你需要为你的场景先烘培Navmesh。

Static Variables 静态变量

AllAreasArea mask constant that includes all NavMesh areas.
区域遮挡包含所有的导航网格区域。
avoidancePredictionTimeDescribes how far in the future the agents predict collisions for avoidance.
描述为了避免碰撞,多远代理开始预测碰撞。
pathfindingIterationsPerFrameThe maximum amount of nodes processed each frame in the asynchronous pathfinding process.
在异步寻路过程中每帧处理的节点的最大数量。

Static Functions

CalculatePathCalculate a path between two points and store the resulting path.
计算两点之间的路径并存储结果路径。
CalculateTriangulationCalculates triangulation of the current navmesh.
计算当前导航网格的三角形。
FindClosestEdgeLocate the closest NavMesh edge from a point on the NavMesh.
查找从导航网格上的点到最近的导航网格边缘。
GetAreaCostGets the cost for path finding over geometry of the area type.
获取区域类型的几何图形之上的寻路成本。
GetAreaFromNameReturns the area index for a named NavMesh area type.
根据明名的导航网格区域类型返回区域索引。
RaycastTrace a line between two points on the NavMesh.
返回一个路线,在navmesh的两点之间。
SamplePositionFinds the closest point on NavMesh within specified range.
在导航网格上的指定范围内寻找最近的点。
SetAreaCostSets the cost for finding path over geometry of the area type on all agents.
在导航网格上的指定范围内寻找最近的点。
script/unityengine/classes/navmesh/navmesh.txt · 最后更改: 2016/08/02 05:36 (外部编辑)