Unity寻路工具相关——recastnavigation
1、recast-navigation主源码c++
https://github.com/recastnavigation/recastnavigation
依赖SDL2
其中编译后的 RecastDemo.exe 可用于 obj 到 bin的生成,原理同go-detour
2、依赖库
https://github.com/libsdl-org/SDL
3、vs工程文件生成工具
https://premake.github.io/
4、go版本recast源码
https://github.com/arl/go-detour
5、Unity中场景导出带 navigation 的3D obj文件
https://github.com/monitor1394/ExportSceneToObj
unity navigation bake export to *.obj
6、go-detour编译可执行文件
go build -o target\recast.exe cmd\recast\main.go
7、go-detour使用
*.obj to recast target file *.bin
recast.exe build D:\git\zheli-space\clothes\game-shop\export\Game_2.bin --input D:\git\zheli-space\clothes\game-shop\export\Game_2.obj
recast.exe infos D:\git\zheli-space\clothes\game-shop\export\Game.bin