ベイクされた NavMesh にアクセスするシングルトンのクラス
NavMesh は Spatial Query を実行するために使用できます。経路探索することや移動しやすさのテストと同様に、特定のエリアタイプが経路のコストを設定し、経路探索や障害物回避するグローバルな動作を微調整します。
Spatial Query を使用するために、最初にシーンの NavMesh をベイクする必要があります。
See also:
• Building a NavMesh – for more information on how to setup and bake NavMesh
• Areas and Costs – to learn how to use different Area types.
• NavMeshAgent – to learn how to control and move NavMesh Agents.
• NavMeshObstacle – to learn how to control NavMesh Obstacles using scripting.
• OffMeshLink – to learn how to control Off-Mesh Links using scripting.
| AllAreas | すべての NavMesh エリアを含むエリアマスク定数 |
| avoidancePredictionTime | エージェントが衝突をどの程度まで予測して回避するかについての方法を説明します。 |
| onPreUpdate | Set a function to be called before the NavMesh is updated during the frame update execution. |
| pathfindingIterationsPerFrame | 非同期経路探索プロセス内の各フレームで処理されるノードの最大数 |
| AddLink | Adds a link to the NavMesh. The link is described by the NavMeshLinkData struct. |
| AddNavMeshData | Adds the specified NavMeshData to the game. |
| CalculatePath | 2 点間の位置を計算して、ナビメッシュオブジェクト上で移動できる範囲のパスを作成します |
| CalculateTriangulation | 現在のナビメッシュの三角測量 |
| CreateSettings | Creates and returns a new entry of NavMesh build settings available for runtime NavMesh building. |
| FindClosestEdge | 特定の位置からもっとも近いナビメッシュオブジェクトの辺の情報を取得します |
| GetAreaCost | エリアタイプのジオメトリ上でパスを検索するコストを取得します |
| GetAreaFromName | ナビメッシュのエリアタイプ名からインデックスを返します |
| GetSettingsByID | Returns an existing entry of NavMesh build settings. |
| GetSettingsByIndex | Returns an existing entry of NavMesh build settings by its ordered index. |
| GetSettingsCount | Returns the number of registered NavMesh build settings. |
| GetSettingsNameFromID | Returns the name associated with the NavMesh build settings matching the provided agent type ID. |
| Raycast | ナビメッシュ上の二点間でレイを飛ばします |
| RemoveLink | Removes a link from the NavMesh. |
| RemoveNavMeshData | Removes the specified NavMeshDataInstance from the game, making it unavailable for agents and queries. |
| RemoveSettings | Removes the build settings matching the agent type ID. |
| SamplePosition | 指定した範囲内の NavMesh で最も近い点を検索します |
| SetAreaCost | すべてのエージェントがレイヤーのジオメトリ上を横切るためのコストを設定します |
| OnNavMeshPreUpdate | A delegate which can be used to register callback methods to be invoked before the NavMesh system updates. |