class_polygonpathfinder.rst 5.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.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. Methods
  10. -------
  11. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  12. | :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`find_path<class_PolygonPathFinder_method_find_path>` **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)** |
  13. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`Rect2<class_Rect2>` | :ref:`get_bounds<class_PolygonPathFinder_method_get_bounds>` **(** **)** |const| |
  15. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`Vector2<class_Vector2>` | :ref:`get_closest_point<class_PolygonPathFinder_method_get_closest_point>` **(** :ref:`Vector2<class_Vector2>` point **)** |const| |
  17. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`get_intersections<class_PolygonPathFinder_method_get_intersections>` **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)** |const| |
  19. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`float<class_float>` | :ref:`get_point_penalty<class_PolygonPathFinder_method_get_point_penalty>` **(** :ref:`int<class_int>` idx **)** |const| |
  21. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`bool<class_bool>` | :ref:`is_point_inside<class_PolygonPathFinder_method_is_point_inside>` **(** :ref:`Vector2<class_Vector2>` point **)** |const| |
  23. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`set_point_penalty<class_PolygonPathFinder_method_set_point_penalty>` **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` penalty **)** |
  25. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`setup<class_PolygonPathFinder_method_setup>` **(** :ref:`PoolVector2Array<class_PoolVector2Array>` points, :ref:`PoolIntArray<class_PoolIntArray>` connections **)** |
  27. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. Method Descriptions
  29. -------------------
  30. .. _class_PolygonPathFinder_method_find_path:
  31. - :ref:`PoolVector2Array<class_PoolVector2Array>` **find_path** **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)**
  32. ----
  33. .. _class_PolygonPathFinder_method_get_bounds:
  34. - :ref:`Rect2<class_Rect2>` **get_bounds** **(** **)** |const|
  35. ----
  36. .. _class_PolygonPathFinder_method_get_closest_point:
  37. - :ref:`Vector2<class_Vector2>` **get_closest_point** **(** :ref:`Vector2<class_Vector2>` point **)** |const|
  38. ----
  39. .. _class_PolygonPathFinder_method_get_intersections:
  40. - :ref:`PoolVector2Array<class_PoolVector2Array>` **get_intersections** **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)** |const|
  41. ----
  42. .. _class_PolygonPathFinder_method_get_point_penalty:
  43. - :ref:`float<class_float>` **get_point_penalty** **(** :ref:`int<class_int>` idx **)** |const|
  44. ----
  45. .. _class_PolygonPathFinder_method_is_point_inside:
  46. - :ref:`bool<class_bool>` **is_point_inside** **(** :ref:`Vector2<class_Vector2>` point **)** |const|
  47. ----
  48. .. _class_PolygonPathFinder_method_set_point_penalty:
  49. - void **set_point_penalty** **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` penalty **)**
  50. ----
  51. .. _class_PolygonPathFinder_method_setup:
  52. - void **setup** **(** :ref:`PoolVector2Array<class_PoolVector2Array>` points, :ref:`PoolIntArray<class_PoolIntArray>` connections **)**
  53. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  54. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  55. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`