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