Hi Zylann,I really like your plugin design.
Since HTerrain does not directly provide navigation baking, I created a small helper script:
HTerrainNavBaker.gd
hterrain_nav_baker.txt
It does:
- Generate a mesh from HTerrain heightmap
- Create temporary StaticBody3D collision geometry
- Bake NavigationMesh through NavigationRegion3D
- Remove temporary nodes after baking
It works with Godot 4.7.
I found that for HTerrain generated navigation, a small cell_height value works better:
nav_mesh.cell_height = 0.01
Otherwise NavigationAgent3D may return path points with height.
Would this be useful as an optional utility in HTerrain?
I can submit a Pull Request if you think it fits the project.
Thanks!
Hi Zylann,I really like your plugin design.
Since HTerrain does not directly provide navigation baking, I created a small helper script:
HTerrainNavBaker.gd
hterrain_nav_baker.txt
It does:
It works with Godot 4.7.
I found that for HTerrain generated navigation, a small cell_height value works better:
nav_mesh.cell_height = 0.01
Otherwise NavigationAgent3D may return path points with height.
Would this be useful as an optional utility in HTerrain?
I can submit a Pull Request if you think it fits the project.
Thanks!