Changing NavigationRegion3D.navigation_mesh.cell_size
doesn't set up NavigationServer3D
respective map to correct cell_size
resulting in mismatch error
#89271
Labels
Tested versions
v4.2.2.rc1.official [c7fb064]
System information
Ubuntu 23.04, Vulkan, NVIDIA GeForce RTX™ 2060 / NVIDIA GeForce RTX™ 2060, NVIDIA Driver Version: 525.105.17, NVML Version: 12.525.105.17
Issue description
This seems something similar to #83570, but for
NavigationRegion3D
/NavigationMesh
.The error occurs when when:
NavigationMesh
with a differentcell_size
and then using Bake NavigationMesh. On subsequent recreations ofNavigationMesh
in the same Godot session the error doesn't occur.NavigationMesh.cell_size
is different from the project properties default value.NavigationMesh.cell_size
is different from the project properties default value.The workaround is to call
NavigationServer3D.map_set_cell_size(get_navigation_map(), navigation_mesh.cell_size)
somewhere in the code.Steps to reproduce
Open the Minimal Reproduction Project and see the error first occur since I have assigned a
NavigationMesh
toNavigationRegion3D.navigation_mesh
with acell_size
of0.1
which is different from the default project properties of0.25
.When you run the project you'll also get the error.
I've attached a workaround script to
NavigationRegion3D
which callsNavigationServer3D.map_set_cell_size(get_navigation_map(), navigation_mesh.cell_size)
and fixes the error at runtime. This code is commented out for the purpose of demonstration.Minimal reproduction project (MRP)
godot-dbg.zip
The text was updated successfully, but these errors were encountered: