class_polygonpathfinder.rst 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 Function Description
  31. ---------------------------
  32. .. _class_PolygonPathFinder_find_path:
  33. - :ref:`PoolVector2Array<class_poolvector2array>` **find_path** **(** :ref:`Vector2<class_vector2>` from, :ref:`Vector2<class_vector2>` to **)**
  34. .. _class_PolygonPathFinder_get_bounds:
  35. - :ref:`Rect2<class_rect2>` **get_bounds** **(** **)** const
  36. .. _class_PolygonPathFinder_get_closest_point:
  37. - :ref:`Vector2<class_vector2>` **get_closest_point** **(** :ref:`Vector2<class_vector2>` point **)** const
  38. .. _class_PolygonPathFinder_get_intersections:
  39. - :ref:`PoolVector2Array<class_poolvector2array>` **get_intersections** **(** :ref:`Vector2<class_vector2>` from, :ref:`Vector2<class_vector2>` to **)** const
  40. .. _class_PolygonPathFinder_get_point_penalty:
  41. - :ref:`float<class_float>` **get_point_penalty** **(** :ref:`int<class_int>` idx **)** const
  42. .. _class_PolygonPathFinder_is_point_inside:
  43. - :ref:`bool<class_bool>` **is_point_inside** **(** :ref:`Vector2<class_vector2>` point **)** const
  44. .. _class_PolygonPathFinder_set_point_penalty:
  45. - void **set_point_penalty** **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` penalty **)**
  46. .. _class_PolygonPathFinder_setup:
  47. - void **setup** **(** :ref:`PoolVector2Array<class_poolvector2array>` points, :ref:`PoolIntArray<class_poolintarray>` connections **)**