NavigationObstacle2D's affect_navigation_mesh
property no longer works when using carve_navigation_mesh
#99271
Labels
Milestone
Tested versions
Reproducible in builds after commit [07b7f76]
System information
Godot v4.4.dev (07b7f76) - Arch Linux # 1 SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:21:02 +0000 on Wayland - X11 display driver, Multi-window, 3 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 Ti (nvidia; 560.35.03) - AMD Ryzen 5 2600X Six-Core Processor (12 threads)
Issue description
NavigationObstacle2D no longer affects NavigationRegion2D's navigation polygon during baking when its
affect_navigation_mesh
andcarve_navigation_mesh
properties are set to to true.I have bisected the bug to commit 07b7f76 which was introduced in #98957.
(Edit: Corrected the reproduction steps, I had missed that checking
carve_navigation_mesh
is essential to reproduce the bug)Steps to reproduce
NavigationRegion2D
and set up aNavigationPolygon
for it.NavigationObstacle2D
and either set its vertices or its radius, and position it so that the obstacle overlaps the navigation polygon.navigation_polygon_source_geometry_group
group and set up theNavigationPolygon
such that it takes this node into account during baking (e.g. setsource_geometry_mode
to "Group with children")affect_navigation_mesh
andcarve_navigation_mesh
Alternatively, download the MRP below, open the main scene, go to the
NavigationRegion2D
node and hit "Bake NavigationPolygon".Minimal reproduction project (MRP)
obstacle_2d_baking_mrp.zip
The text was updated successfully, but these errors were encountered: