summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.NavMesh.lua
blob: df75130d9ee94bed6e444d1f5feb14610e329241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

---@class cc.NavMesh :cc.Ref
local NavMesh={ }
cc.NavMesh=NavMesh




---*  remove a obstacle from navmesh. 
---@param obstacle cc.NavMeshObstacle
---@return self
function NavMesh:removeNavMeshObstacle (obstacle) end
---*  remove a agent from navmesh. 
---@param agent cc.NavMeshAgent
---@return self
function NavMesh:removeNavMeshAgent (agent) end
---*  update navmesh. 
---@param dt float
---@return self
function NavMesh:update (dt) end
---*  Check enabled debug draw. 
---@return boolean
function NavMesh:isDebugDrawEnabled () end
---*  add a agent to navmesh. 
---@param agent cc.NavMeshAgent
---@return self
function NavMesh:addNavMeshAgent (agent) end
---*  add a obstacle to navmesh. 
---@param obstacle cc.NavMeshObstacle
---@return self
function NavMesh:addNavMeshObstacle (obstacle) end
---*  Enable debug draw or disable. 
---@param enable boolean
---@return self
function NavMesh:setDebugDrawEnable (enable) end
---*  Internal method, the updater of debug drawing, need called each frame. 
---@param renderer cc.Renderer
---@return self
function NavMesh:debugDraw (renderer) end
---* Create navmesh<br>
---* param navFilePath The NavMesh File path.<br>
---* param geomFilePath The geometry File Path,include offmesh information,etc.
---@param navFilePath string
---@param geomFilePath string
---@return self
function NavMesh:create (navFilePath,geomFilePath) end
---* 
---@return self
function NavMesh:NavMesh () end