1.public NavMeshPath path { get; set; } 用来存储的路径的
2.public int walkableMask { get; set; } 可以通过的层级
3.public int areaMask { get; set; } 可以通过的区域
4.public float remainingDistance { get; }剩下的距离
***5.public bool CalculatePath(Vector3 targetPosition, NavMeshPath path);重点:计算路径,路径可以到达就返回True
6.public bool Raycast(Vector3 targetPosition, out NavMeshHit hit);判断有没有东西挡住
7.public bool SetPath(NavMeshPath path);将一个路径设置为当前路径,true表示可以到达的路径,反之无法到达
寻路导航NavMeshAgent笔记---------------重要API和参数
最新推荐文章于 2023-07-03 09:52:30 发布