Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.3.beta3] NavigationAgent not working properly when baking at runtime. #94358

Closed
Jaete opened this issue Jul 14, 2024 · 1 comment · Fixed by #94362
Closed

[4.3.beta3] NavigationAgent not working properly when baking at runtime. #94358

Jaete opened this issue Jul 14, 2024 · 1 comment · Fixed by #94362

Comments

@Jaete
Copy link

Jaete commented Jul 14, 2024

Tested versions

  • Reproduced in: v4.3.beta3 (Failing); v4.2.2.stable (OK)

System information

Godot v4.3.beta3.mono - Ubuntu 24.04 LTS 24.04 - X11 - Vulkan (Forward+) - dedicated AMD Radeon RX 550 Series (RADV POLARIS11) - AMD Ryzen 7 PRO 1700 Eight-Core Processor (16 Threads)

Issue description

NavigationAgent2D is completely ignoring the new hole on the NavigationMesh when baked at runtime. It's like isn't updating or something.

I've tested both on C# and GDScript. Both are with the same problem. I'm not using the NavigationServer or anything, just the expected procedure to bake at runtime. Not using NavigationLayers on Tileset too. Also not trying to merge Meshes. Just a simple hole with a StaticBody2D CollisionPolygon nested at the NavigationRegion.

The StaticBodies are just to make the hole on the mesh, they're in different collision layers, as isn't intended to collide with player.

I've also tested with Polygon2D. Same problem.

Screenshots:

The pre-baked staticBody works just fine.

image

The baked at runtime doesn't.

image

Before baking:

image

I've baked the second StaticBody on the engine and now works fine.

image

Steps to reproduce

Just open the project on both versions and see the difference. There's a pre-baked hole and the 4.3 works just fine. So it can be something when the rebaking occurs.

You just have to click on the "bake" button, the project is already set to bake the other StaticBody when you do.

Make sure to check the debug visibilities.

Minimal reproduction project (MRP)

Here's a MRP i've made just for the issue. (Technically would be N/A here, but I've spared you the work to set this scenario.)

testNav.zip

@iakihsoug
Copy link

Great job! I encountered the same issue an hour ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants