feat: add npc path finding to the zones based on needs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://rs3hv73svbpa"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://rs3hv73svbpa"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://4mg67crlim53" path="res://player/player.gd" id="1_h2yge"]
|
||||
[ext_resource type="Script" uid="uid://ii8ai801jur2" path="res://player/camera_rig.gd" id="2_1bvp3"]
|
||||
@@ -6,6 +6,10 @@
|
||||
[ext_resource type="Script" uid="uid://c1f3b26n4yntf" path="res://world/world_view_manager.gd" id="4_1bvp3"]
|
||||
[ext_resource type="PackedScene" uid="uid://dhxxyprqflotq" path="res://player/npc/NpcVisual.tscn" id="5_lquwl"]
|
||||
|
||||
[sub_resource type="NavigationMesh" id="NavigationMesh_lquwl"]
|
||||
vertices = PackedVector3Array(-14.5, 0.4, -14.5, -14.5, 0.4, 14.5, 14.5, 0.4, 14.5, 14.5, 0.4, -14.5)
|
||||
polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1)]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_o5qli"]
|
||||
albedo_color = Color(0.16862746, 0.52156866, 0.30588236, 1)
|
||||
|
||||
@@ -34,10 +38,14 @@ light_energy = 2.0
|
||||
|
||||
[node name="World" type="Node3D" parent="."]
|
||||
|
||||
[node name="Ground" type="MeshInstance3D" parent="World"]
|
||||
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="World"]
|
||||
navigation_mesh = SubResource("NavigationMesh_lquwl")
|
||||
|
||||
[node name="Ground" type="MeshInstance3D" parent="World/NavigationRegion3D"]
|
||||
transform = Transform3D(30, 0, 0, 0, 0.1, 0, 0, 0, 30, 0, -0.05, 0)
|
||||
material_override = SubResource("StandardMaterial3D_o5qli")
|
||||
mesh = SubResource("BoxMesh_sgp6g")
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
[node name="Player" type="CharacterBody3D" parent="." node_paths=PackedStringArray("camera_rig")]
|
||||
script = ExtResource("1_h2yge")
|
||||
|
||||
Reference in New Issue
Block a user