diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-26 15:35:44 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-26 15:35:44 +0100 |
commit | d29a892d287b52beb48c331c0da7bc59ac3db237 (patch) | |
tree | 2b06b4346c678cc17e2e7c86366bdc5d819ce2a7 /scripts/bsp_level_generator.gd | |
parent | 8ff2487734df59855bbfd988d88b3b32273049e2 (diff) |
dungeon_manager: Add level exit, and load new level
Diffstat (limited to 'scripts/bsp_level_generator.gd')
-rw-r--r-- | scripts/bsp_level_generator.gd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/bsp_level_generator.gd b/scripts/bsp_level_generator.gd index bef90be..4a1ca9b 100644 --- a/scripts/bsp_level_generator.gd +++ b/scripts/bsp_level_generator.gd @@ -175,7 +175,10 @@ func _ready() -> void: grid_generated.emit(grid, grid_width, grid_height) generate_geo(grid, surface_array) + mesh.mesh = ArrayMesh.new() mesh.mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, surface_array) var tri_mesh = mesh.mesh.create_trimesh_shape() $NavigationRegion3D/StaticBody3D/CollisionShape3D.shape = tri_mesh - $NavigationRegion3D.bake_navigation_mesh() + #$NavigationRegion3D.navigation_mesh = NavigationMesh.new() + #$NavigationRegion3D.navigation_mesh.radius + $NavigationRegion3D.bake_navigation_mesh(false) |