尋路

場景
伺服器端
可在 Mobile 端和 PC 端使用

創建從起點到終點的尋路路徑,會繞開阻擋,可以用於AI尋路

聲明

async func FindPath(startPosition Vector3, endPosition Vector3, out var isSuccess bool, out var pathPoints List<Vector3>)
go

參數

輸入

名稱 類型 描述
起點 Vector3 起點座標
終點 Vector3 終點座標

輸出

名稱 類型 描述
是否成功 Bool 是否成功建立尋路路徑
尋路點 ListT_Vector3 尋路點集合