返回介绍

NavMeshPath 导航网格路径

发布于 2019-12-18 15:38:06 字数 1785 浏览 991 评论 0 收藏 0

class in UnityEngine

Description 描述

A path as calculated by the navigation system.

导航网格系统计算的路径。

The path is represented as a list of waypoints stored in the corners array. These points are not set directly from user scripts but a NavMeshPath with points correctly assigned is returned by the NavMesh.CalculatePath function and the NavMeshAgent.path property.

该路径代表存储在corners 数组中的路径点的列表。这些点不是直接从用户脚本设置。而是通过NavMesh.CalculatePath函数和NavMeshAgent.path属性返回分配的当前导航网格路径点。

Variables 变量

cornersCorner points of the path. (Read Only)
路径拐角点。(只读)
statusStatus of the path. (Read Only)
路径的状态。(只读)

Constructors 构造

NavMeshPathNavMeshPath constructor.
导航网格路径构造函数。

Public Functions 公共函数

ClearCornersErase all corner points from path.
从路径清除所有拐角点。
GetCornersNonAllocCalculate the corners for the path.
计算路径的拐角。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文