Unity3d導出Recast geomset.txt
(金慶的專欄)
Recast Demo 輸入需要 geomset.txt 文件來指定區(qū)域類型。
以O(shè)bjExporter.cs為基礎(chǔ),編寫Unity3d地圖導出工具,同時導出obj文件和geomset.txt.
geomset.txt 示例
# Obj file.f scene_level_0101.unity_56.obj# Convex volumes.# v nVertex area hmin hmax# Area:# 0: Default# 1: Not Walkable# 2: Jump# 3: Enemy# wallv 4 1 -19.10179 6.521788-77.54077 -19.10179 60.79453-74.40015 6.521788 57.64596-73.83923 6.521788 58.20547-76.97985 -19.10179 61.35404場景:
Recast 加載:
代碼:
Powered by: C++博客 Copyright © 金慶