class_polygonpathfinder.rst 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the PolygonPathFinder.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_PolygonPathFinder:
  5. PolygonPathFinder
  6. =================
  7. **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Member Functions
  12. ----------------
  13. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`PoolVector2Array<class_poolvector2array>` | :ref:`find_path<class_PolygonPathFinder_find_path>` **(** :ref:`Vector2<class_vector2>` from, :ref:`Vector2<class_vector2>` to **)** |
  15. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`Rect2<class_rect2>` | :ref:`get_bounds<class_PolygonPathFinder_get_bounds>` **(** **)** const |
  17. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`Vector2<class_vector2>` | :ref:`get_closest_point<class_PolygonPathFinder_get_closest_point>` **(** :ref:`Vector2<class_vector2>` point **)** const |
  19. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`PoolVector2Array<class_poolvector2array>` | :ref:`get_intersections<class_PolygonPathFinder_get_intersections>` **(** :ref:`Vector2<class_vector2>` from, :ref:`Vector2<class_vector2>` to **)** const |
  21. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`float<class_float>` | :ref:`get_point_penalty<class_PolygonPathFinder_get_point_penalty>` **(** :ref:`int<class_int>` idx **)** const |
  23. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`is_point_inside<class_PolygonPathFinder_is_point_inside>` **(** :ref:`Vector2<class_vector2>` point **)** const |
  25. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`set_point_penalty<class_PolygonPathFinder_set_point_penalty>` **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` penalty **)** |
  27. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`setup<class_PolygonPathFinder_setup>` **(** :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolIntArray<class_poolintarray>` connections **)** |
  29. +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. Member Variables
  31. ----------------
  32. - :ref:`Dictionary<class_dictionary>` **data**
  33. Member Function Description
  34. ---------------------------
  35. .. _class_PolygonPathFinder_find_path:
  36. - :ref:`PoolVector2Array<class_poolvector2array>` **find_path** **(** :ref:`Vector2<class_vector2>` from, :ref:`Vector2<class_vector2>` to **)**
  37. .. _class_PolygonPathFinder_get_bounds:
  38. - :ref:`Rect2<class_rect2>` **get_bounds** **(** **)** const
  39. .. _class_PolygonPathFinder_get_closest_point:
  40. - :ref:`Vector2<class_vector2>` **get_closest_point** **(** :ref:`Vector2<class_vector2>` point **)** const
  41. .. _class_PolygonPathFinder_get_intersections:
  42. - :ref:`PoolVector2Array<class_poolvector2array>` **get_intersections** **(** :ref:`Vector2<class_vector2>` from, :ref:`Vector2<class_vector2>` to **)** const
  43. .. _class_PolygonPathFinder_get_point_penalty:
  44. - :ref:`float<class_float>` **get_point_penalty** **(** :ref:`int<class_int>` idx **)** const
  45. .. _class_PolygonPathFinder_is_point_inside:
  46. - :ref:`bool<class_bool>` **is_point_inside** **(** :ref:`Vector2<class_vector2>` point **)** const
  47. .. _class_PolygonPathFinder_set_point_penalty:
  48. - void **set_point_penalty** **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` penalty **)**
  49. .. _class_PolygonPathFinder_setup:
  50. - void **setup** **(** :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolIntArray<class_poolintarray>` connections **)**