class_polygonpathfinder.rst 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the PolygonPathFinder.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PolygonPathFinder:
  6. PolygonPathFinder
  7. =================
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Methods
  13. -------
  14. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`find_path<class_PolygonPathFinder_method_find_path>` **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)** |
  16. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`Rect2<class_Rect2>` | :ref:`get_bounds<class_PolygonPathFinder_method_get_bounds>` **(** **)** const |
  18. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`Vector2<class_Vector2>` | :ref:`get_closest_point<class_PolygonPathFinder_method_get_closest_point>` **(** :ref:`Vector2<class_Vector2>` point **)** const |
  20. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`get_intersections<class_PolygonPathFinder_method_get_intersections>` **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)** const |
  22. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`float<class_float>` | :ref:`get_point_penalty<class_PolygonPathFinder_method_get_point_penalty>` **(** :ref:`int<class_int>` idx **)** const |
  24. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`is_point_inside<class_PolygonPathFinder_method_is_point_inside>` **(** :ref:`Vector2<class_Vector2>` point **)** const |
  26. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`set_point_penalty<class_PolygonPathFinder_method_set_point_penalty>` **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` penalty **)** |
  28. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`setup<class_PolygonPathFinder_method_setup>` **(** :ref:`PoolVector2Array<class_PoolVector2Array>` points, :ref:`PoolIntArray<class_PoolIntArray>` connections **)** |
  30. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. Method Descriptions
  32. -------------------
  33. .. _class_PolygonPathFinder_method_find_path:
  34. - :ref:`PoolVector2Array<class_PoolVector2Array>` **find_path** **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)**
  35. ----
  36. .. _class_PolygonPathFinder_method_get_bounds:
  37. - :ref:`Rect2<class_Rect2>` **get_bounds** **(** **)** const
  38. ----
  39. .. _class_PolygonPathFinder_method_get_closest_point:
  40. - :ref:`Vector2<class_Vector2>` **get_closest_point** **(** :ref:`Vector2<class_Vector2>` point **)** const
  41. ----
  42. .. _class_PolygonPathFinder_method_get_intersections:
  43. - :ref:`PoolVector2Array<class_PoolVector2Array>` **get_intersections** **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)** const
  44. ----
  45. .. _class_PolygonPathFinder_method_get_point_penalty:
  46. - :ref:`float<class_float>` **get_point_penalty** **(** :ref:`int<class_int>` idx **)** const
  47. ----
  48. .. _class_PolygonPathFinder_method_is_point_inside:
  49. - :ref:`bool<class_bool>` **is_point_inside** **(** :ref:`Vector2<class_Vector2>` point **)** const
  50. ----
  51. .. _class_PolygonPathFinder_method_set_point_penalty:
  52. - void **set_point_penalty** **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` penalty **)**
  53. ----
  54. .. _class_PolygonPathFinder_method_setup:
  55. - void **setup** **(** :ref:`PoolVector2Array<class_PoolVector2Array>` points, :ref:`PoolIntArray<class_PoolIntArray>` connections **)**