Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
NavigationPathQueryResult3D
Sperimentale: This class may be changed or removed in future versions.
Eredita: RefCounted < Object
Rappresenta il risultato di una richiesta di ricerca del percorso 3D.
Descrizione
Questa classe memorizza il risultato di una richiesta di percorso di navigazione 3D dal NavigationServer3D.
Tutorial
Proprietà
|
||
|
||
|
||
|
||
|
Metodi
void |
reset() |
Enumerazioni
enum PathSegmentType: 🔗
PathSegmentType PATH_SEGMENT_TYPE_REGION = 0
Questo segmento del percorso attraversa una regione.
PathSegmentType PATH_SEGMENT_TYPE_LINK = 1
Questo segmento del percorso attraversa un collegamento.
Descrizioni delle proprietà
PackedVector3Array path = PackedVector3Array() 🔗
void set_path(value: PackedVector3Array)
PackedVector3Array get_path()
L'array del percorso risultante dalla ricerca di navigazione. Tutte le posizioni dell'array del percorso sono in coordinate globali. Senza parametri di ricerca personalizzati, questo è lo stesso percorso restituito da 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.
Restituisce la lunghezza del percorso.
PackedInt64Array path_owner_ids = PackedInt64Array() 🔗
void set_path_owner_ids(value: PackedInt64Array)
PackedInt64Array get_path_owner_ids()
Gli ObjectID degli Object che gestiscono le regioni e collegano ogni punto del percorso.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt64Array for more details.
I RID delle regioni e dei collegamenti attraversati da ogni punto del percorso.
PackedInt32Array path_types = PackedInt32Array() 🔗
void set_path_types(value: PackedInt32Array)
PackedInt32Array get_path_types()
Il tipo di primitiva di navigazione (regione o collegamento) che attraversa ogni punto del percorso.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.
Descrizioni dei metodi
void reset() 🔗
Ripristina l'oggetto risultato al suo stato iniziale. Ciò è utile per riutilizzare l'oggetto in più ricerche.