class_polygonpathfinder.rst 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. Methods
  12. -------
  13. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`find_path<class_PolygonPathFinder_method_find_path>` **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)** |
  15. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`Rect2<class_Rect2>` | :ref:`get_bounds<class_PolygonPathFinder_method_get_bounds>` **(** **)** const |
  17. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`Vector2<class_Vector2>` | :ref:`get_closest_point<class_PolygonPathFinder_method_get_closest_point>` **(** :ref:`Vector2<class_Vector2>` point **)** const |
  19. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`get_intersections<class_PolygonPathFinder_method_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_method_get_point_penalty>` **(** :ref:`int<class_int>` idx **)** const |
  23. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`is_point_inside<class_PolygonPathFinder_method_is_point_inside>` **(** :ref:`Vector2<class_Vector2>` point **)** const |
  25. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`set_point_penalty<class_PolygonPathFinder_method_set_point_penalty>` **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` penalty **)** |
  27. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`setup<class_PolygonPathFinder_method_setup>` **(** :ref:`PoolVector2Array<class_PoolVector2Array>` points, :ref:`PoolIntArray<class_PoolIntArray>` connections **)** |
  29. +-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. Method Descriptions
  31. -------------------
  32. .. _class_PolygonPathFinder_method_find_path:
  33. - :ref:`PoolVector2Array<class_PoolVector2Array>` **find_path** **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)**
  34. .. _class_PolygonPathFinder_method_get_bounds:
  35. - :ref:`Rect2<class_Rect2>` **get_bounds** **(** **)** const
  36. .. _class_PolygonPathFinder_method_get_closest_point:
  37. - :ref:`Vector2<class_Vector2>` **get_closest_point** **(** :ref:`Vector2<class_Vector2>` point **)** const
  38. .. _class_PolygonPathFinder_method_get_intersections:
  39. - :ref:`PoolVector2Array<class_PoolVector2Array>` **get_intersections** **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)** const
  40. .. _class_PolygonPathFinder_method_get_point_penalty:
  41. - :ref:`float<class_float>` **get_point_penalty** **(** :ref:`int<class_int>` idx **)** const
  42. .. _class_PolygonPathFinder_method_is_point_inside:
  43. - :ref:`bool<class_bool>` **is_point_inside** **(** :ref:`Vector2<class_Vector2>` point **)** const
  44. .. _class_PolygonPathFinder_method_set_point_penalty:
  45. - void **set_point_penalty** **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` penalty **)**
  46. .. _class_PolygonPathFinder_method_setup:
  47. - void **setup** **(** :ref:`PoolVector2Array<class_PoolVector2Array>` points, :ref:`PoolIntArray<class_PoolIntArray>` connections **)**