# 11/28(三) 進度 ## 實驗室實測ZED-Mini 反饋:使用上知識不足,無法操作,沒有效率 ## 查找資料 1.空間探測(待測試) https://www.stereolabs.com/docs/unity/spatial-mapping-unity/ 2.基本內容與操作介紹 https://www.stereolabs.com/docs/unity/basic-concepts/ 3.怪物巡邏AI https://blog.csdn.net/c252270036/article/details/77414141 4.AI https://kknews.cc/zh-tw/game/v8m38e2.html ### 1.空間探測(待測試) https://www.stereolabs.com/docs/unity/spatial-mapping-unity/ 利用在plugin的`NavMeshSurface.cs`script 1. 建立新的空物件"Navigation" 2. 新增Nav Mesh Surface 元件 3. 拉ZED_Rig_Mono到Nav Mesh Surface 元件中的ZED Rig field 4. 選擇Agent Type(???) 5. 開始場景,然後啟動Spatial Mapping並對該區域進行貼圖 6. Press Stop Spatial Mapping,腳本會生成NavMesh 7. Toggle between Display Mesh and Hide Mesh to show/hide the NavMesh. ### code新增 ![](https://i.imgur.com/d3tRPfh.png) ![](https://i.imgur.com/wxK5eVp.png)