diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-22 15:33:22 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-22 15:33:22 +0100 |
commit | e9b2e264f767da4e630a515ae3217f3966be9ce6 (patch) | |
tree | 3f7517104ed7061eb9be9e9d70b9abefa10cac80 /prefabs/bsp_level_generator.tscn | |
parent | 5f6ba92130f55ec81f2336d488743c6ff2aeaf74 (diff) |
bsp_level_generator: Create navigation mesh
Also make enemy AI use nav mesh for finding player
Diffstat (limited to 'prefabs/bsp_level_generator.tscn')
-rw-r--r-- | prefabs/bsp_level_generator.tscn | 7 |
1 files changed, 6 insertions, 1 deletions
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") |