class_navigationmeshsourcegeometrydata2d.rst 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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/NavigationMeshSourceGeometryData2D.xml.
  6. .. _class_NavigationMeshSourceGeometryData2D:
  7. NavigationMeshSourceGeometryData2D
  8. ==================================
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Container for parsed source geometry data used in navigation mesh baking.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Container for parsed source geometry data used in navigation mesh baking.
  15. .. rst-class:: classref-reftable-group
  16. Methods
  17. -------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`add_obstruction_outline<class_NavigationMeshSourceGeometryData2D_method_add_obstruction_outline>` **(** :ref:`PackedVector2Array<class_PackedVector2Array>` shape_outline **)** |
  22. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`add_traversable_outline<class_NavigationMeshSourceGeometryData2D_method_add_traversable_outline>` **(** :ref:`PackedVector2Array<class_PackedVector2Array>` shape_outline **)** |
  24. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`clear<class_NavigationMeshSourceGeometryData2D_method_clear>` **(** **)** |
  26. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`PackedVector2Array[]<class_PackedVector2Array>` | :ref:`get_obstruction_outlines<class_NavigationMeshSourceGeometryData2D_method_get_obstruction_outlines>` **(** **)** |const| |
  28. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`PackedVector2Array[]<class_PackedVector2Array>` | :ref:`get_traversable_outlines<class_NavigationMeshSourceGeometryData2D_method_get_traversable_outlines>` **(** **)** |const| |
  30. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`bool<class_bool>` | :ref:`has_data<class_NavigationMeshSourceGeometryData2D_method_has_data>` **(** **)** |
  32. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`set_obstruction_outlines<class_NavigationMeshSourceGeometryData2D_method_set_obstruction_outlines>` **(** :ref:`PackedVector2Array[]<class_PackedVector2Array>` obstruction_outlines **)** |
  34. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`set_traversable_outlines<class_NavigationMeshSourceGeometryData2D_method_set_traversable_outlines>` **(** :ref:`PackedVector2Array[]<class_PackedVector2Array>` traversable_outlines **)** |
  36. +-------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Method Descriptions
  41. -------------------
  42. .. _class_NavigationMeshSourceGeometryData2D_method_add_obstruction_outline:
  43. .. rst-class:: classref-method
  44. void **add_obstruction_outline** **(** :ref:`PackedVector2Array<class_PackedVector2Array>` shape_outline **)**
  45. Adds the outline points of a shape as obstructed area.
  46. .. rst-class:: classref-item-separator
  47. ----
  48. .. _class_NavigationMeshSourceGeometryData2D_method_add_traversable_outline:
  49. .. rst-class:: classref-method
  50. void **add_traversable_outline** **(** :ref:`PackedVector2Array<class_PackedVector2Array>` shape_outline **)**
  51. Adds the outline points of a shape as traversable area.
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_NavigationMeshSourceGeometryData2D_method_clear:
  55. .. rst-class:: classref-method
  56. void **clear** **(** **)**
  57. Clears the internal data.
  58. .. rst-class:: classref-item-separator
  59. ----
  60. .. _class_NavigationMeshSourceGeometryData2D_method_get_obstruction_outlines:
  61. .. rst-class:: classref-method
  62. :ref:`PackedVector2Array[]<class_PackedVector2Array>` **get_obstruction_outlines** **(** **)** |const|
  63. Returns all the obstructed area outlines arrays.
  64. .. rst-class:: classref-item-separator
  65. ----
  66. .. _class_NavigationMeshSourceGeometryData2D_method_get_traversable_outlines:
  67. .. rst-class:: classref-method
  68. :ref:`PackedVector2Array[]<class_PackedVector2Array>` **get_traversable_outlines** **(** **)** |const|
  69. Returns all the traversable area outlines arrays.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_NavigationMeshSourceGeometryData2D_method_has_data:
  73. .. rst-class:: classref-method
  74. :ref:`bool<class_bool>` **has_data** **(** **)**
  75. Returns ``true`` when parsed source geometry data exists.
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_NavigationMeshSourceGeometryData2D_method_set_obstruction_outlines:
  79. .. rst-class:: classref-method
  80. void **set_obstruction_outlines** **(** :ref:`PackedVector2Array[]<class_PackedVector2Array>` obstruction_outlines **)**
  81. Sets all the obstructed area outlines arrays.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_NavigationMeshSourceGeometryData2D_method_set_traversable_outlines:
  85. .. rst-class:: classref-method
  86. void **set_traversable_outlines** **(** :ref:`PackedVector2Array[]<class_PackedVector2Array>` traversable_outlines **)**
  87. Sets all the traversable area outlines arrays.
  88. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  89. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  90. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  91. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  92. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  93. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  94. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`