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

NavigationPolygon uses 3D parsed_collision_mask and ignore other tilemap physics layers #90125

Closed
Prakkkmak opened this issue Apr 2, 2024 · 2 comments

Comments

@Prakkkmak
Copy link

Tested versions

4.2.1.stable

System information

Windows 11

Issue description

NavigationRegion2D uses a NavigationPolygon. This Polygon refers to 3D Collision Masks. The problem is, in my tilemap I can't set physics 3D layers so my "Bake Navigation Polygon" don't work properly.
-> My guess is: the NavigationPolygon filters only the first collision layer. If the first physics layer of the tilemap is set to 4 for example and the navpolygon to 4, it's works. But if the second layer was in the physics 4, the the layer will be ignored.

Steps to reproduce

Create a NavigationPolygon
The Parsed Collision Mask refers to 3d Physics and not the 2D physics layers

Minimal reproduction project (MRP)

test_nav.zip

@smix8
Copy link
Contributor

smix8 commented Apr 2, 2024

The NavigationPolygon group name for the parsing and the layer name had a bug in Godot 4.2.1. It is fixed in Godot 4.3dev / master.

The 2D navigation mesh baking only parses the TileMapLayer0. See other issue #85798.

@smix8
Copy link
Contributor

smix8 commented Apr 8, 2024

Closing as the group name has been fixed in Godot master and the parsing now considers all TileMapLayers with PR #85856.

Even with all TileMapLayers parsed the core navigationmesh restrictions still apply. This means that tile polygons can not overlap and intersect.

@smix8 smix8 closed this as completed Apr 8, 2024
@smix8 smix8 added the archived label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants