meta data for this page
  •  

📚 差别

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

到此差别页面的链接

后一修订版
前一修订版
scripting:world:ai [2025/08/06 03:53] – 创建 bibiboxsscripting:world:ai [2025/08/07 01:16] (当前版本) bibiboxs
行 15: 行 15:
  
 ```javascript ```javascript
-function AI.SetActive( active: bool, isFullNavMesh: bool = false )+function SetActive( active: bool, isFullNavMesh: bool = false )
 ``` ```
  
行 27: 行 27:
  
 ```javascript ```javascript
-function AI.GetActive(): bool+function GetActive(): bool
 ``` ```
  
行 39: 行 39:
  
 ```javascript ```javascript
-function AI.SetNavMeshSampleDistance( sampleDistance: float )+function SetNavMeshSampleDistance( sampleDistance: float )
 ``` ```
  
行 49: 行 49:
  
 ```javascript ```javascript
-function AI.GetNavMeshSampleDistance(): float+function GetNavMeshSampleDistance(): float
 ``` ```
  
行 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`继承全局设定)
 +
 +