Skip to content

cloudfreexiao/lua-recastnavigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Navigation 教程链接地址,navmesh文件的生成

https://github.com/ketoo/NoahGameFrame/blob/master/NFComm/NFNavigationPlugin

https://github.com/bluesky7290/NFrame_unity3d_nav

使用例子:

local recastnavigation = require("recastnavigation")
print("recastnavigation:", inspect(recastnavigation), "\n")

local path = "./srv_demo.navmesh"
local navmesh = recastnavigation.navmesh(1, path)
print("navmesh:", inspect(navmesh), "\n")

local res, path = navmesh:FindStraightPath(0,0,0,23,0,5)
if res then
    print("navmesh FindStraightPath:", inspect(path), "\n")
end

navmesh = nil

collectgarbage()

while true do
end

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published