class_navigationmesh.rst 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the NavigationMesh.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_NavigationMesh:
  5. NavigationMesh
  6. ==============
  7. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Properties
  12. ----------
  13. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`float<class_float>` | :ref:`agent/height<class_NavigationMesh_agent/height>` |
  15. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`float<class_float>` | :ref:`agent/max_climb<class_NavigationMesh_agent/max_climb>` |
  17. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`float<class_float>` | :ref:`agent/max_slope<class_NavigationMesh_agent/max_slope>` |
  19. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`float<class_float>` | :ref:`agent/radius<class_NavigationMesh_agent/radius>` |
  21. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`float<class_float>` | :ref:`cell/height<class_NavigationMesh_cell/height>` |
  23. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`cell/size<class_NavigationMesh_cell/size>` |
  25. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`float<class_float>` | :ref:`detail/sample_distance<class_NavigationMesh_detail/sample_distance>` |
  27. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`float<class_float>` | :ref:`detail/sample_max_error<class_NavigationMesh_detail/sample_max_error>` |
  29. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`float<class_float>` | :ref:`edge/max_error<class_NavigationMesh_edge/max_error>` |
  31. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`float<class_float>` | :ref:`edge/max_length<class_NavigationMesh_edge/max_length>` |
  33. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`bool<class_bool>` | :ref:`filter/filter_walkable_low_height_spans<class_NavigationMesh_filter/filter_walkable_low_height_spans>` |
  35. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`bool<class_bool>` | :ref:`filter/ledge_spans<class_NavigationMesh_filter/ledge_spans>` |
  37. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`bool<class_bool>` | :ref:`filter/low_hanging_obstacles<class_NavigationMesh_filter/low_hanging_obstacles>` |
  39. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`float<class_float>` | :ref:`polygon/verts_per_poly<class_NavigationMesh_polygon/verts_per_poly>` |
  41. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  42. | :ref:`float<class_float>` | :ref:`region/merge_size<class_NavigationMesh_region/merge_size>` |
  43. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`float<class_float>` | :ref:`region/min_size<class_NavigationMesh_region/min_size>` |
  45. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`int<class_int>` | :ref:`sample_partition_type/sample_partition_type<class_NavigationMesh_sample_partition_type/sample_partition_type>` |
  47. +---------------------------+----------------------------------------------------------------------------------------------------------------------+
  48. Methods
  49. -------
  50. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  51. | void | :ref:`add_polygon<class_NavigationMesh_add_polygon>` **(** :ref:`PoolIntArray<class_PoolIntArray>` polygon **)** |
  52. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  53. | void | :ref:`clear_polygons<class_NavigationMesh_clear_polygons>` **(** **)** |
  54. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  55. | void | :ref:`create_from_mesh<class_NavigationMesh_create_from_mesh>` **(** :ref:`Mesh<class_Mesh>` mesh **)** |
  56. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`PoolIntArray<class_PoolIntArray>` | :ref:`get_polygon<class_NavigationMesh_get_polygon>` **(** :ref:`int<class_int>` idx **)** |
  58. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`int<class_int>` | :ref:`get_polygon_count<class_NavigationMesh_get_polygon_count>` **(** **)** const |
  60. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`PoolVector3Array<class_PoolVector3Array>` | :ref:`get_vertices<class_NavigationMesh_get_vertices>` **(** **)** const |
  62. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  63. | void | :ref:`set_vertices<class_NavigationMesh_set_vertices>` **(** :ref:`PoolVector3Array<class_PoolVector3Array>` vertices **)** |
  64. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+
  65. Constants
  66. ---------
  67. - **SAMPLE_PARTITION_WATERSHED** = **0**
  68. - **SAMPLE_PARTITION_MONOTONE** = **1**
  69. - **SAMPLE_PARTITION_LAYERS** = **2**
  70. Property Descriptions
  71. ---------------------
  72. .. _class_NavigationMesh_agent/height:
  73. - :ref:`float<class_float>` **agent/height**
  74. +----------+-------------------------+
  75. | *Setter* | set_agent_height(value) |
  76. +----------+-------------------------+
  77. | *Getter* | get_agent_height() |
  78. +----------+-------------------------+
  79. .. _class_NavigationMesh_agent/max_climb:
  80. - :ref:`float<class_float>` **agent/max_climb**
  81. +----------+----------------------------+
  82. | *Setter* | set_agent_max_climb(value) |
  83. +----------+----------------------------+
  84. | *Getter* | get_agent_max_climb() |
  85. +----------+----------------------------+
  86. .. _class_NavigationMesh_agent/max_slope:
  87. - :ref:`float<class_float>` **agent/max_slope**
  88. +----------+----------------------------+
  89. | *Setter* | set_agent_max_slope(value) |
  90. +----------+----------------------------+
  91. | *Getter* | get_agent_max_slope() |
  92. +----------+----------------------------+
  93. .. _class_NavigationMesh_agent/radius:
  94. - :ref:`float<class_float>` **agent/radius**
  95. +----------+-------------------------+
  96. | *Setter* | set_agent_radius(value) |
  97. +----------+-------------------------+
  98. | *Getter* | get_agent_radius() |
  99. +----------+-------------------------+
  100. .. _class_NavigationMesh_cell/height:
  101. - :ref:`float<class_float>` **cell/height**
  102. +----------+------------------------+
  103. | *Setter* | set_cell_height(value) |
  104. +----------+------------------------+
  105. | *Getter* | get_cell_height() |
  106. +----------+------------------------+
  107. .. _class_NavigationMesh_cell/size:
  108. - :ref:`float<class_float>` **cell/size**
  109. +----------+----------------------+
  110. | *Setter* | set_cell_size(value) |
  111. +----------+----------------------+
  112. | *Getter* | get_cell_size() |
  113. +----------+----------------------+
  114. .. _class_NavigationMesh_detail/sample_distance:
  115. - :ref:`float<class_float>` **detail/sample_distance**
  116. +----------+-----------------------------------+
  117. | *Setter* | set_detail_sample_distance(value) |
  118. +----------+-----------------------------------+
  119. | *Getter* | get_detail_sample_distance() |
  120. +----------+-----------------------------------+
  121. .. _class_NavigationMesh_detail/sample_max_error:
  122. - :ref:`float<class_float>` **detail/sample_max_error**
  123. +----------+------------------------------------+
  124. | *Setter* | set_detail_sample_max_error(value) |
  125. +----------+------------------------------------+
  126. | *Getter* | get_detail_sample_max_error() |
  127. +----------+------------------------------------+
  128. .. _class_NavigationMesh_edge/max_error:
  129. - :ref:`float<class_float>` **edge/max_error**
  130. +----------+---------------------------+
  131. | *Setter* | set_edge_max_error(value) |
  132. +----------+---------------------------+
  133. | *Getter* | get_edge_max_error() |
  134. +----------+---------------------------+
  135. .. _class_NavigationMesh_edge/max_length:
  136. - :ref:`float<class_float>` **edge/max_length**
  137. +----------+----------------------------+
  138. | *Setter* | set_edge_max_length(value) |
  139. +----------+----------------------------+
  140. | *Getter* | get_edge_max_length() |
  141. +----------+----------------------------+
  142. .. _class_NavigationMesh_filter/filter_walkable_low_height_spans:
  143. - :ref:`bool<class_bool>` **filter/filter_walkable_low_height_spans**
  144. +----------+---------------------------------------------+
  145. | *Setter* | set_filter_walkable_low_height_spans(value) |
  146. +----------+---------------------------------------------+
  147. | *Getter* | get_filter_walkable_low_height_spans() |
  148. +----------+---------------------------------------------+
  149. .. _class_NavigationMesh_filter/ledge_spans:
  150. - :ref:`bool<class_bool>` **filter/ledge_spans**
  151. +----------+-------------------------------+
  152. | *Setter* | set_filter_ledge_spans(value) |
  153. +----------+-------------------------------+
  154. | *Getter* | get_filter_ledge_spans() |
  155. +----------+-------------------------------+
  156. .. _class_NavigationMesh_filter/low_hanging_obstacles:
  157. - :ref:`bool<class_bool>` **filter/low_hanging_obstacles**
  158. +----------+-----------------------------------------+
  159. | *Setter* | set_filter_low_hanging_obstacles(value) |
  160. +----------+-----------------------------------------+
  161. | *Getter* | get_filter_low_hanging_obstacles() |
  162. +----------+-----------------------------------------+
  163. .. _class_NavigationMesh_polygon/verts_per_poly:
  164. - :ref:`float<class_float>` **polygon/verts_per_poly**
  165. +----------+---------------------------+
  166. | *Setter* | set_verts_per_poly(value) |
  167. +----------+---------------------------+
  168. | *Getter* | get_verts_per_poly() |
  169. +----------+---------------------------+
  170. .. _class_NavigationMesh_region/merge_size:
  171. - :ref:`float<class_float>` **region/merge_size**
  172. +----------+------------------------------+
  173. | *Setter* | set_region_merge_size(value) |
  174. +----------+------------------------------+
  175. | *Getter* | get_region_merge_size() |
  176. +----------+------------------------------+
  177. .. _class_NavigationMesh_region/min_size:
  178. - :ref:`float<class_float>` **region/min_size**
  179. +----------+----------------------------+
  180. | *Setter* | set_region_min_size(value) |
  181. +----------+----------------------------+
  182. | *Getter* | get_region_min_size() |
  183. +----------+----------------------------+
  184. .. _class_NavigationMesh_sample_partition_type/sample_partition_type:
  185. - :ref:`int<class_int>` **sample_partition_type/sample_partition_type**
  186. +----------+----------------------------------+
  187. | *Setter* | set_sample_partition_type(value) |
  188. +----------+----------------------------------+
  189. | *Getter* | get_sample_partition_type() |
  190. +----------+----------------------------------+
  191. Method Descriptions
  192. -------------------
  193. .. _class_NavigationMesh_add_polygon:
  194. - void **add_polygon** **(** :ref:`PoolIntArray<class_PoolIntArray>` polygon **)**
  195. .. _class_NavigationMesh_clear_polygons:
  196. - void **clear_polygons** **(** **)**
  197. .. _class_NavigationMesh_create_from_mesh:
  198. - void **create_from_mesh** **(** :ref:`Mesh<class_Mesh>` mesh **)**
  199. .. _class_NavigationMesh_get_polygon:
  200. - :ref:`PoolIntArray<class_PoolIntArray>` **get_polygon** **(** :ref:`int<class_int>` idx **)**
  201. .. _class_NavigationMesh_get_polygon_count:
  202. - :ref:`int<class_int>` **get_polygon_count** **(** **)** const
  203. .. _class_NavigationMesh_get_vertices:
  204. - :ref:`PoolVector3Array<class_PoolVector3Array>` **get_vertices** **(** **)** const
  205. .. _class_NavigationMesh_set_vertices:
  206. - void **set_vertices** **(** :ref:`PoolVector3Array<class_PoolVector3Array>` vertices **)**