From e9b2e264f767da4e630a515ae3217f3966be9ce6 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Sun, 22 Sep 2024 15:33:22 +0100 Subject: bsp_level_generator: Create navigation mesh Also make enemy AI use nav mesh for finding player --- prefabs/bsp_level_generator.tscn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'prefabs/bsp_level_generator.tscn') diff --git a/prefabs/bsp_level_generator.tscn b/prefabs/bsp_level_generator.tscn index dbb62a5..ea0cfd7 100644 --- a/prefabs/bsp_level_generator.tscn +++ b/prefabs/bsp_level_generator.tscn @@ -1,6 +1,11 @@ -[gd_scene load_steps=2 format=3 uid="uid://w7hxcvuvud"] +[gd_scene load_steps=3 format=3 uid="uid://w7hxcvuvud"] [ext_resource type="Script" path="res://scripts/bsp_level_generator.gd" id="1_6jn1x"] +[sub_resource type="NavigationMesh" id="NavigationMesh_q1fo6"] + [node name="BspLevelGenerator" type="Node3D"] script = ExtResource("1_6jn1x") + +[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."] +navigation_mesh = SubResource("NavigationMesh_q1fo6") -- cgit