class_navigationpathqueryresult3d.rst 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/NavigationPathQueryResult3D.xml.
  6. .. _class_NavigationPathQueryResult3D:
  7. NavigationPathQueryResult3D
  8. ===========================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Represents the result of a 3D pathfinding query.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This class stores the result of a 3D navigation path query from the :ref:`NavigationServer3D<class_NavigationServer3D>`.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - :doc:`Using NavigationPathQueryObjects <../tutorials/navigation/navigation_using_navigationpathqueryobjects>`
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  25. | :ref:`PackedVector3Array<class_PackedVector3Array>` | :ref:`path<class_NavigationPathQueryResult3D_property_path>` | ``PackedVector3Array()`` |
  26. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  27. | :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`path_owner_ids<class_NavigationPathQueryResult3D_property_path_owner_ids>` | ``PackedInt64Array()`` |
  28. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  29. | :ref:`RID[]<class_RID>` | :ref:`path_rids<class_NavigationPathQueryResult3D_property_path_rids>` | ``[]`` |
  30. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  31. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`path_types<class_NavigationPathQueryResult3D_property_path_types>` | ``PackedInt32Array()`` |
  32. +-----------------------------------------------------+----------------------------------------------------------------------------------+--------------------------+
  33. .. rst-class:: classref-reftable-group
  34. Methods
  35. -------
  36. .. table::
  37. :widths: auto
  38. +------+--------------------------------------------------------------------------+
  39. | void | :ref:`reset<class_NavigationPathQueryResult3D_method_reset>` **(** **)** |
  40. +------+--------------------------------------------------------------------------+
  41. .. rst-class:: classref-section-separator
  42. ----
  43. .. rst-class:: classref-descriptions-group
  44. Enumerations
  45. ------------
  46. .. _enum_NavigationPathQueryResult3D_PathSegmentType:
  47. .. rst-class:: classref-enumeration
  48. enum **PathSegmentType**:
  49. .. _class_NavigationPathQueryResult3D_constant_PATH_SEGMENT_TYPE_REGION:
  50. .. rst-class:: classref-enumeration-constant
  51. :ref:`PathSegmentType<enum_NavigationPathQueryResult3D_PathSegmentType>` **PATH_SEGMENT_TYPE_REGION** = ``0``
  52. This segment of the path goes through a region.
  53. .. _class_NavigationPathQueryResult3D_constant_PATH_SEGMENT_TYPE_LINK:
  54. .. rst-class:: classref-enumeration-constant
  55. :ref:`PathSegmentType<enum_NavigationPathQueryResult3D_PathSegmentType>` **PATH_SEGMENT_TYPE_LINK** = ``1``
  56. This segment of the path goes through a link.
  57. .. rst-class:: classref-section-separator
  58. ----
  59. .. rst-class:: classref-descriptions-group
  60. Property Descriptions
  61. ---------------------
  62. .. _class_NavigationPathQueryResult3D_property_path:
  63. .. rst-class:: classref-property
  64. :ref:`PackedVector3Array<class_PackedVector3Array>` **path** = ``PackedVector3Array()``
  65. .. rst-class:: classref-property-setget
  66. - void **set_path** **(** :ref:`PackedVector3Array<class_PackedVector3Array>` value **)**
  67. - :ref:`PackedVector3Array<class_PackedVector3Array>` **get_path** **(** **)**
  68. 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>`.
  69. .. rst-class:: classref-item-separator
  70. ----
  71. .. _class_NavigationPathQueryResult3D_property_path_owner_ids:
  72. .. rst-class:: classref-property
  73. :ref:`PackedInt64Array<class_PackedInt64Array>` **path_owner_ids** = ``PackedInt64Array()``
  74. .. rst-class:: classref-property-setget
  75. - void **set_path_owner_ids** **(** :ref:`PackedInt64Array<class_PackedInt64Array>` value **)**
  76. - :ref:`PackedInt64Array<class_PackedInt64Array>` **get_path_owner_ids** **(** **)**
  77. The ``ObjectID``\ s of the :ref:`Object<class_Object>`\ s which manage the regions and links each point of the path goes through.
  78. .. rst-class:: classref-item-separator
  79. ----
  80. .. _class_NavigationPathQueryResult3D_property_path_rids:
  81. .. rst-class:: classref-property
  82. :ref:`RID[]<class_RID>` **path_rids** = ``[]``
  83. .. rst-class:: classref-property-setget
  84. - void **set_path_rids** **(** :ref:`RID[]<class_RID>` value **)**
  85. - :ref:`RID[]<class_RID>` **get_path_rids** **(** **)**
  86. The :ref:`RID<class_RID>`\ s of the regions and links that each point of the path goes through.
  87. .. rst-class:: classref-item-separator
  88. ----
  89. .. _class_NavigationPathQueryResult3D_property_path_types:
  90. .. rst-class:: classref-property
  91. :ref:`PackedInt32Array<class_PackedInt32Array>` **path_types** = ``PackedInt32Array()``
  92. .. rst-class:: classref-property-setget
  93. - void **set_path_types** **(** :ref:`PackedInt32Array<class_PackedInt32Array>` value **)**
  94. - :ref:`PackedInt32Array<class_PackedInt32Array>` **get_path_types** **(** **)**
  95. The type of navigation primitive (region or link) that each point of the path goes through.
  96. .. rst-class:: classref-section-separator
  97. ----
  98. .. rst-class:: classref-descriptions-group
  99. Method Descriptions
  100. -------------------
  101. .. _class_NavigationPathQueryResult3D_method_reset:
  102. .. rst-class:: classref-method
  103. void **reset** **(** **)**
  104. Reset the result object to its initial state. This is useful to reuse the object across multiple queries.
  105. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  106. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  107. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  108. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  109. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  110. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  111. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`