meta data for this page
  •  

📚 差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
scripting:world:ai [2025/08/06 03:56] bibiboxsscripting:world:ai [2025/08/07 01:16] (当前版本) bibiboxs
行 80: 行 80:
  
  
-### AI.GetNavMeshRandomPoint()+### AI.SampleNavMeshRandomPoint()
  
 > 获取**指定坐标范围**内的随机**网格坐标**点(已烘焙),此方法会内部遍历多次,但不确保每次都能获取到数据。 > 获取**指定坐标范围**内的随机**网格坐标**点(已烘焙),此方法会内部遍历多次,但不确保每次都能获取到数据。
行 87: 行 87:
  
 ```javascript ```javascript
-function GetNavMeshRandomPoint( pos: Vector, radius: float, sampleDistance: float = -1 ): Vector+function SampleNavMeshRandomPoint( pos: Vector, radius: float, sampleDistance: float = -1 ): Vector
 ``` ```
  
行 126: 行 126:
  
 - `sampleDistance`采样容错距离(`-1`继承全局设定) - `sampleDistance`采样容错距离(`-1`继承全局设定)
 +