From 5fe8f92f48a2b059cb3adb7b1175e0b235168e2c Mon Sep 17 00:00:00 2001 From: Willow Behar <2364126-TechRunner@users.noreply.gitlab.com> Date: Fri, 10 May 2024 11:25:25 -0500 Subject: [PATCH] TestMap for Enemy Nav --- Assets/Levels/monster_nav_test.tscn | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Assets/Levels/monster_nav_test.tscn diff --git a/Assets/Levels/monster_nav_test.tscn b/Assets/Levels/monster_nav_test.tscn new file mode 100644 index 0000000..14c8bbc --- /dev/null +++ b/Assets/Levels/monster_nav_test.tscn @@ -0,0 +1,32 @@ +[gd_scene load_steps=6 format=3 uid="uid://csdj2r6comujy"] + +[ext_resource type="Material" uid="uid://dqhejxrcijd1r" path="res://Assets/Materials/Floor_Tile.tres" id="1_4gn3h"] +[ext_resource type="PackedScene" uid="uid://cadrciw8ywini" path="res://Assets/components/enemy.tscn" id="2_6yypg"] + +[sub_resource type="NavigationMesh" id="NavigationMesh_4041h"] +vertices = PackedVector3Array(-499.5, 1, -499.5, -499.5, 1, 499.5, 499.5, 1, 499.5, 499.5, 1, -499.5) +polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1)] + +[sub_resource type="BoxShape3D" id="BoxShape3D_82gv2"] +size = Vector3(1000, 1, 1000) + +[sub_resource type="BoxMesh" id="BoxMesh_jnejv"] +material = ExtResource("1_4gn3h") +size = Vector3(1000, 1, 1000) + +[node name="Monster Nav Test" type="Node3D"] + +[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."] +navigation_mesh = SubResource("NavigationMesh_4041h") + +[node name="Floor" type="StaticBody3D" parent="NavigationRegion3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/Floor"] +shape = SubResource("BoxShape3D_82gv2") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="NavigationRegion3D/Floor"] +mesh = SubResource("BoxMesh_jnejv") + +[node name="Enemy" parent="." instance=ExtResource("2_6yypg")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.66095, 22) +SPEED = 15.0