diff options
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.NavMesh.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/cc.NavMesh.lua | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.NavMesh.lua b/meta/3rd/Cocos4.0/cc.NavMesh.lua new file mode 100644 index 00000000..df75130d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.NavMesh.lua @@ -0,0 +1,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
\ No newline at end of file |