浏览代码

Mention that unwanted navmesh can be discarded with a NavigationObstacle3D

Adds info that in Godot 4.3 a NavigationObstacle3D can be baked to navmesh and used to discard unwanted navmesh inside its shape, e.g. navmesh that appears inside walls.
smix8 1 年之前
父节点
当前提交
dd1ff5a7c2
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 二进制
      tutorials/navigation/img/nav_obstacle_bake.webp
  2. 8 0
      tutorials/navigation/navigation_using_navigationmeshes.rst

二进制
tutorials/navigation/img/nav_obstacle_bake.webp


+ 8 - 0
tutorials/navigation/navigation_using_navigationmeshes.rst

@@ -284,6 +284,14 @@ There are some common user problems and important caveats to consider when creat
     Remove the geometry that is on the ground inside the other geometry. If that is not possible, add smaller "dummy" geometry inside with as few triangles as possible so the cells
     are occupied with something.
 
+    A :ref:`NavigationObstacle3D<class_NavigationObstacle3D>` shape set to bake with navigation mesh can be used to discard geometry as well.
+
+.. figure:: img/nav_mesh_obstacles_discard.webp
+   :align: center
+   :alt: NavigationObstacle3D unwanted geometry discard
+
+   A NavigationObstacle3D shape can be used to discard unwanted navigation mesh parts.
+
 Navigation mesh script templates
 --------------------------------