Merge pull request #54862 from boruok/3.x-fix-navigationpolygon-doc

This commit is contained in:
Yuri Roubinsky 2021-11-11 10:16:27 +03:00 committed by GitHub
commit 0529813cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
var polygon = NavigationPolygon.new() var polygon = NavigationPolygon.new()
var vertices = PoolVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, 50), Vector2(50, 0)]) var vertices = PoolVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, 50), Vector2(50, 0)])
polygon.set_vertices(vertices) polygon.set_vertices(vertices)
var indices = PoolIntArray(0, 3, 1) var indices = PoolIntArray([0, 1, 2, 3])
polygon.add_polygon(indices) polygon.add_polygon(indices)
$NavigationPolygonInstance.navpoly = polygon $NavigationPolygonInstance.navpoly = polygon
[/codeblock] [/codeblock]