From d29a892d287b52beb48c331c0da7bc59ac3db237 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Thu, 26 Sep 2024 15:35:44 +0100 Subject: dungeon_manager: Add level exit, and load new level --- scripts/bsp_level_generator.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/bsp_level_generator.gd') 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) -- cgit