working on picking up arrows

This commit is contained in:
derek
2025-06-26 17:04:35 -05:00
parent af5ff6f284
commit 64310b848b
37 changed files with 492 additions and 106 deletions

View File

@@ -1,7 +1,8 @@
[gd_scene load_steps=22 format=4 uid="uid://dctwrgdviw2bq"]
[gd_scene load_steps=24 format=4 uid="uid://dctwrgdviw2bq"]
[ext_resource type="Material" uid="uid://cautxfwhf4hrq" path="res://Assets/Materials/BROWN.tres" id="1_sfuv8"]
[ext_resource type="Material" uid="uid://dv5fpke6frr4n" path="res://Assets/Materials/BLACK.tres" id="1_sq2hy"]
[ext_resource type="Script" uid="uid://blcfh1bg820w7" path="res://Scripts/rat.gd" id="1_xmfkn"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_o45vq"]
resource_name = "rat1"
@@ -327,9 +328,15 @@ _data = {
&"run": SubResource("Animation_rf35q")
}
[sub_resource type="BoxShape3D" id="BoxShape3D_xmfkn"]
size = Vector3(0.433838, 2.92389, 1)
[node name="rat" type="CharacterBody3D" groups=["breakable", "npc", "rat", "spawned"]]
collision_layer = 64
collision_mask = 45
collision_layer = 8
collision_mask = 9
script = ExtResource("1_xmfkn")
start_health = 3
loot_dropped = 100
[node name="StateMachine" type="Node" parent="."]
@@ -396,4 +403,8 @@ target_position = Vector3(0, 0, -0.2)
transform = Transform3D(0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, 0.707107, 0, -0.0699478, -0.342128)
target_position = Vector3(0, 0, -0.2)
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.45218, 0)
shape = SubResource("BoxShape3D_xmfkn")
[connection signal="velocity_computed" from="NavigationAgent3D" to="." method="_on_navigation_agent_3d_velocity_computed"]