Now About Social Code
summaryrefslogtreecommitdiff
path: root/scripts/bsp_level_generator.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bsp_level_generator.gd')
-rw-r--r--scripts/bsp_level_generator.gd5
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)