class_navigationpathqueryresult3d.rst 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/NavigationPathQueryResult3D.xml.
  6. .. _class_NavigationPathQueryResult3D:
  7. NavigationPathQueryResult3D
  8. ===========================
  9. **Experimental:** This class may be changed or removed in future versions.
  10. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  11. Represents the result of a 3D pathfinding query.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. This class stores the result of a 3D navigation path query from the :ref:`NavigationServer3D<class_NavigationServer3D>`.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Using NavigationPathQueryObjects <../tutorials/navigation/navigation_using_navigationpathqueryobjects>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  26. | :ref:`PackedVector3Array<class_PackedVector3Array>` | :ref:`path<class_NavigationPathQueryResult3D_property_path>` | ``PackedVector3Array()`` |
  27. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  28. | :ref:`float<class_float>` | :ref:`path_length<class_NavigationPathQueryResult3D_property_path_length>` | ``0.0`` |
  29. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  30. | :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`path_owner_ids<class_NavigationPathQueryResult3D_property_path_owner_ids>` | ``PackedInt64Array()`` |
  31. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  32. | :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] | :ref:`path_rids<class_NavigationPathQueryResult3D_property_path_rids>` | ``[]`` |
  33. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  34. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`path_types<class_NavigationPathQueryResult3D_property_path_types>` | ``PackedInt32Array()`` |
  35. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  36. .. rst-class:: classref-reftable-group
  37. Methods
  38. -------
  39. .. table::
  40. :widths: auto
  41. +--------+--------------------------------------------------------------------+
  42. | |void| | :ref:`reset<class_NavigationPathQueryResult3D_method_reset>`\ (\ ) |
  43. +--------+--------------------------------------------------------------------+
  44. .. rst-class:: classref-section-separator
  45. ----
  46. .. rst-class:: classref-descriptions-group
  47. Enumerations
  48. ------------
  49. .. _enum_NavigationPathQueryResult3D_PathSegmentType:
  50. .. rst-class:: classref-enumeration
  51. enum **PathSegmentType**: :ref:`🔗<enum_NavigationPathQueryResult3D_PathSegmentType>`
  52. .. _class_NavigationPathQueryResult3D_constant_PATH_SEGMENT_TYPE_REGION:
  53. .. rst-class:: classref-enumeration-constant
  54. :ref:`PathSegmentType<enum_NavigationPathQueryResult3D_PathSegmentType>` **PATH_SEGMENT_TYPE_REGION** = ``0``
  55. This segment of the path goes through a region.
  56. .. _class_NavigationPathQueryResult3D_constant_PATH_SEGMENT_TYPE_LINK:
  57. .. rst-class:: classref-enumeration-constant
  58. :ref:`PathSegmentType<enum_NavigationPathQueryResult3D_PathSegmentType>` **PATH_SEGMENT_TYPE_LINK** = ``1``
  59. This segment of the path goes through a link.
  60. .. rst-class:: classref-section-separator
  61. ----
  62. .. rst-class:: classref-descriptions-group
  63. Property Descriptions
  64. ---------------------
  65. .. _class_NavigationPathQueryResult3D_property_path:
  66. .. rst-class:: classref-property
  67. :ref:`PackedVector3Array<class_PackedVector3Array>` **path** = ``PackedVector3Array()`` :ref:`🔗<class_NavigationPathQueryResult3D_property_path>`
  68. .. rst-class:: classref-property-setget
  69. - |void| **set_path**\ (\ value\: :ref:`PackedVector3Array<class_PackedVector3Array>`\ )
  70. - :ref:`PackedVector3Array<class_PackedVector3Array>` **get_path**\ (\ )
  71. The resulting path array from the navigation query. All path array positions are in global coordinates. Without customized query parameters this is the same path as returned by :ref:`NavigationServer3D.map_get_path()<class_NavigationServer3D_method_map_get_path>`.
  72. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedVector3Array<class_PackedVector3Array>` for more details.
  73. .. rst-class:: classref-item-separator
  74. ----
  75. .. _class_NavigationPathQueryResult3D_property_path_length:
  76. .. rst-class:: classref-property
  77. :ref:`float<class_float>` **path_length** = ``0.0`` :ref:`🔗<class_NavigationPathQueryResult3D_property_path_length>`
  78. .. rst-class:: classref-property-setget
  79. - |void| **set_path_length**\ (\ value\: :ref:`float<class_float>`\ )
  80. - :ref:`float<class_float>` **get_path_length**\ (\ )
  81. Returns the length of the path.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_NavigationPathQueryResult3D_property_path_owner_ids:
  85. .. rst-class:: classref-property
  86. :ref:`PackedInt64Array<class_PackedInt64Array>` **path_owner_ids** = ``PackedInt64Array()`` :ref:`🔗<class_NavigationPathQueryResult3D_property_path_owner_ids>`
  87. .. rst-class:: classref-property-setget
  88. - |void| **set_path_owner_ids**\ (\ value\: :ref:`PackedInt64Array<class_PackedInt64Array>`\ )
  89. - :ref:`PackedInt64Array<class_PackedInt64Array>` **get_path_owner_ids**\ (\ )
  90. The ``ObjectID``\ s of the :ref:`Object<class_Object>`\ s which manage the regions and links each point of the path goes through.
  91. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedInt64Array<class_PackedInt64Array>` for more details.
  92. .. rst-class:: classref-item-separator
  93. ----
  94. .. _class_NavigationPathQueryResult3D_property_path_rids:
  95. .. rst-class:: classref-property
  96. :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **path_rids** = ``[]`` :ref:`🔗<class_NavigationPathQueryResult3D_property_path_rids>`
  97. .. rst-class:: classref-property-setget
  98. - |void| **set_path_rids**\ (\ value\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\]\ )
  99. - :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **get_path_rids**\ (\ )
  100. The :ref:`RID<class_RID>`\ s of the regions and links that each point of the path goes through.
  101. .. rst-class:: classref-item-separator
  102. ----
  103. .. _class_NavigationPathQueryResult3D_property_path_types:
  104. .. rst-class:: classref-property
  105. :ref:`PackedInt32Array<class_PackedInt32Array>` **path_types** = ``PackedInt32Array()`` :ref:`🔗<class_NavigationPathQueryResult3D_property_path_types>`
  106. .. rst-class:: classref-property-setget
  107. - |void| **set_path_types**\ (\ value\: :ref:`PackedInt32Array<class_PackedInt32Array>`\ )
  108. - :ref:`PackedInt32Array<class_PackedInt32Array>` **get_path_types**\ (\ )
  109. The type of navigation primitive (region or link) that each point of the path goes through.
  110. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedInt32Array<class_PackedInt32Array>` for more details.
  111. .. rst-class:: classref-section-separator
  112. ----
  113. .. rst-class:: classref-descriptions-group
  114. Method Descriptions
  115. -------------------
  116. .. _class_NavigationPathQueryResult3D_method_reset:
  117. .. rst-class:: classref-method
  118. |void| **reset**\ (\ ) :ref:`🔗<class_NavigationPathQueryResult3D_method_reset>`
  119. Reset the result object to its initial state. This is useful to reuse the object across multiple queries.
  120. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  121. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  122. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  123. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  124. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  125. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  126. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  127. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  128. .. |void| replace:: :abbr:`void (No return value.)`