godotengine / godotengine/godot

NavigationRegion3D with multiple floor levels bakes polygons with wrong height

Open
#95,029 4 comments 1 reaction 0 assignees View on GitHub
topic:navigation
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproducible in: 4.3.rc1, 4.2.2.stable

### System information

Linux - Godot v4.3.rc1.official.e343dbbcc - Vulkan (Forward+)

### Issue description

With specific geometry, like map with bridges or multiple connected height levels (floors), NavigationRegion3D may create polygons using height from wrong level.
![nav_bake_3d](https://github.com/user-attachments/assets/75b8cb97-1223-4c98-a3dd-0cc7119e9438)
Current example bugs with sample_partition_type `Monotone` or `Layers`

### Steps to reproduce

1. Open MRP
2. Select NavigationRegion3D node
3. Click `Clear NavigationMesh`
4. Click `Bake NavigationMesh`

### Minimal reproduction project (MRP)

[nav-bake-3d.zip](https://github.com/user-attachments/files/16459379/nav-bake-3d.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.