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

Add NavigationMesh baking for HeightMapShape3D #63932

Merged

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Aug 5, 2022

Adds HeightMapShape3D for StaticColliders and GridMap to the NavigationMeshGenerator for baking NavigationMesh.

Fixes #51289

I have a dedicated pr prepared for 3.x as names and function return values are different.

@smix8 smix8 force-pushed the navigation_heightmapshape_baking_4.x branch from 8727b1d to 74b730c Compare August 5, 2022 01:23
@Chaosus Chaosus added this to the 4.0 milestone Aug 5, 2022
@smix8 smix8 force-pushed the navigation_heightmapshape_baking_4.x branch from 74b730c to 8b45dfa Compare August 5, 2022 06:51
Adds HeightMapShape for StaticColliders and GridMap to the NavigationMeshGenerator for baking NavigationMesh.
@smix8 smix8 force-pushed the navigation_heightmapshape_baking_4.x branch from 8b45dfa to 5137cd9 Compare August 5, 2022 06:56
@akien-mga akien-mga merged commit 74d2c7d into godotengine:master Aug 8, 2022
@akien-mga
Copy link
Member

Thanks!

@smix8 smix8 deleted the navigation_heightmapshape_baking_4.x branch August 8, 2022 15:32
@lawnjelly
Copy link
Member

Just to note I didn't have time to properly look at this, but the only concern is the faces are duplicating vertices on each line, whereas they could be shared and use indices. I don't know whether duplicates are taken care of later on in the baking.

I know that with a baked navigation mesh I was working with, there still appeared to be duplicate verts.

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

Successfully merging this pull request may close these issues.

Using HeightMapShape with NavigationMeshInstance
4 participants