2017-09-12 22:42:36 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-02-01 02:03:48 +01:00
|
|
|
<class name="PolygonPathFinder" inherits="Resource" version="4.0">
|
2017-09-12 22:42:36 +02:00
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="find_path">
|
2020-02-18 13:59:24 +01:00
|
|
|
<return type="PackedVector2Array">
|
2017-09-12 22:42:36 +02:00
|
|
|
</return>
|
|
|
|
<argument index="0" name="from" type="Vector2">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="to" type="Vector2">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_bounds" qualifiers="const">
|
|
|
|
<return type="Rect2">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_closest_point" qualifiers="const">
|
|
|
|
<return type="Vector2">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="point" type="Vector2">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_intersections" qualifiers="const">
|
2020-02-18 13:59:24 +01:00
|
|
|
<return type="PackedVector2Array">
|
2017-09-12 22:42:36 +02:00
|
|
|
</return>
|
|
|
|
<argument index="0" name="from" type="Vector2">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="to" type="Vector2">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_point_penalty" qualifiers="const">
|
|
|
|
<return type="float">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="idx" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="is_point_inside" qualifiers="const">
|
|
|
|
<return type="bool">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="point" type="Vector2">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_point_penalty">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="idx" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="penalty" type="float">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="setup">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
2020-02-18 13:59:24 +01:00
|
|
|
<argument index="0" name="points" type="PackedVector2Array">
|
2017-09-12 22:42:36 +02:00
|
|
|
</argument>
|
2020-02-25 18:10:58 +01:00
|
|
|
<argument index="1" name="connections" type="PackedInt32Array">
|
2017-09-12 22:42:36 +02:00
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|