summaryrefslogtreecommitdiff
path: root/doc/classes/NavigationPolygon.xml
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2020-02-28 08:05:04 +0100
committerAndrea Catania <info@andreacatania.com>2020-02-28 08:28:53 +0100
commit483994601d8c9f25185fc78e1ae60b19849b00f9 (patch)
treee6c79fc527bf4ab8aba6ade95c54b74027345aeb /doc/classes/NavigationPolygon.xml
parent2e0fb66c6f5dd280a28bffb1233e400afa1a698d (diff)
Renamed NavigationPolygonInstance to NavigationRegion2D
Diffstat (limited to 'doc/classes/NavigationPolygon.xml')
-rw-r--r--doc/classes/NavigationPolygon.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/NavigationPolygon.xml b/doc/classes/NavigationPolygon.xml
index da291b7337..b0f77dff83 100644
--- a/doc/classes/NavigationPolygon.xml
+++ b/doc/classes/NavigationPolygon.xml
@@ -11,7 +11,7 @@
var outline = PackedVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, 50), Vector2(50, 0)])
polygon.add_outline(outline)
polygon.make_polygons_from_outlines()
- $NavigationPolygonInstance.navpoly = polygon
+ $NavigationRegion2D.navpoly = polygon
[/codeblock]
Using [method add_polygon] and indices of the vertices array.
[codeblock]
@@ -20,7 +20,7 @@
polygon.set_vertices(vertices)
var indices = PackedInt32Array(0, 3, 1)
polygon.add_polygon(indices)
- $NavigationPolygonInstance.navpoly = polygon
+ $NavigationRegion2D.navpoly = polygon
[/codeblock]
</description>
<tutorials>