NavigationPathQueryResult3D
實驗性: This class may be changed or removed in future versions.
繼承: RefCounted < Object
代表 3D 尋路查詢的結果。
說明
這個類儲存的是向 NavigationServer3D 進行 3D 導覽路徑查詢的結果。
教學
屬性
|
||
|
||
|
||
|
||
|
方法
void |
reset() |
列舉
enum PathSegmentType: 🔗
PathSegmentType PATH_SEGMENT_TYPE_REGION = 0
這一段路徑穿過了某個地區。
PathSegmentType PATH_SEGMENT_TYPE_LINK = 1
這一段路徑穿過了某個連結。
屬性說明
PackedVector3Array path = PackedVector3Array() 🔗
void set_path(value: PackedVector3Array)
PackedVector3Array get_path()
導覽查詢的路徑陣列結果。所有的路徑陣列位置都使用全域座標。未自訂查詢參數時,與 NavigationServer3D.map_get_path() 返回的路徑相同。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedVector3Array for more details.
Returns the length of the path.
PackedInt64Array path_owner_ids = PackedInt64Array() 🔗
void set_path_owner_ids(value: PackedInt64Array)
PackedInt64Array get_path_owner_ids()
管理路徑上的各個點所經過的地區和連結的 Object 的 ObjectID。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt64Array for more details.
路徑上的各個點所經過的地區和連結的 RID。
PackedInt32Array path_types = PackedInt32Array() 🔗
void set_path_types(value: PackedInt32Array)
PackedInt32Array get_path_types()
路徑上的各個點所經過的導覽圖元型別(地區或連結)。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.
方法說明
void reset() 🔗
將結果物件重設為其初始狀態。這對於在多次查詢中重複使用該物件是很有用的。