瀏覽代碼

Fix typo in Using NavigationServer tutorial page

(cherry picked from commit 8a9780670bb2aedf38e03c2cc9196329f564f314)
Alexey Puchkov 1 年之前
父節點
當前提交
a39df66736
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/navigation/navigation_using_navigationservers.rst

+ 1 - 1
tutorials/navigation/navigation_using_navigationservers.rst

@@ -108,7 +108,7 @@ Afterwards the function waits for the next physics frame before continuing with
 
 
         # create a new navigation region and add it to the map
         # create a new navigation region and add it to the map
         var region: RID = NavigationServer3D.region_create()
         var region: RID = NavigationServer3D.region_create()
-        NavigationServer3D.region_set_transform(region, Transform())
+        NavigationServer3D.region_set_transform(region, Transform3D())
         NavigationServer3D.region_set_map(region, map)
         NavigationServer3D.region_set_map(region, map)
 
 
         # create a procedural navigation mesh for the region
         # create a procedural navigation mesh for the region