class_navigationpathqueryresult3d.rst 7.1 KB

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