summaryrefslogtreecommitdiff
path: root/doc/classes/Navigation2DServer.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Navigation2DServer.xml')
-rw-r--r--doc/classes/Navigation2DServer.xml40
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/classes/Navigation2DServer.xml b/doc/classes/Navigation2DServer.xml
index 22b5d2574e..08776e2b15 100644
--- a/doc/classes/Navigation2DServer.xml
+++ b/doc/classes/Navigation2DServer.xml
@@ -164,50 +164,50 @@
Returns the map cell size.
</description>
</method>
- <method name="map_get_edge_connection_margin" qualifiers="const">
- <return type="float">
+ <method name="map_get_closest_point" qualifiers="const">
+ <return type="Vector2">
</return>
<argument index="0" name="map" type="RID">
</argument>
+ <argument index="1" name="to_point" type="Vector2">
+ </argument>
<description>
- Returns the edge connection margin of the map. The edge connection margin is a distance used to connect two regions.
+ Returns the point closest to the provided [code]to_point[/code] on the navigation mesh surface.
</description>
</method>
- <method name="map_get_path" qualifiers="const">
- <return type="PackedVector2Array">
+ <method name="map_get_closest_point_owner" qualifiers="const">
+ <return type="RID">
</return>
<argument index="0" name="map" type="RID">
</argument>
- <argument index="1" name="origin" type="Vector2">
- </argument>
- <argument index="2" name="destination" type="Vector2">
- </argument>
- <argument index="3" name="optimize" type="bool">
+ <argument index="1" name="to_point" type="Vector2">
</argument>
<description>
- Returns the navigation path to reach the destination from the origin, while avoiding static obstacles.
+ Returns the owner region RID for the point returned by [method map_get_closest_point].
</description>
</method>
- <method name="map_get_closest_point" qualifiers="const">
- <return type="Vector2">
+ <method name="map_get_edge_connection_margin" qualifiers="const">
+ <return type="float">
</return>
<argument index="0" name="map" type="RID">
</argument>
- <argument index="1" name="point" type="Vector2">
- </argument>
<description>
- Returns the point closest to the provided [code]point[/code] on the navigation mesh surface.
+ Returns the edge connection margin of the map. The edge connection margin is a distance used to connect two regions.
</description>
</method>
- <method name="map_get_closest_point_owner" qualifiers="const">
- <return type="RID">
+ <method name="map_get_path" qualifiers="const">
+ <return type="PackedVector2Array">
</return>
<argument index="0" name="map" type="RID">
</argument>
- <argument index="1" name="point" type="Vector2">
+ <argument index="1" name="origin" type="Vector2">
+ </argument>
+ <argument index="2" name="destination" type="Vector2">
+ </argument>
+ <argument index="3" name="optimize" type="bool">
</argument>
<description>
- Returns the owner region RID for the point returned by [method map_get_closest_point].
+ Returns the navigation path to reach the destination from the origin, while avoiding static obstacles.
</description>
</method>
<method name="map_is_active" qualifiers="const">