added deposit robot

This commit is contained in:
derek
2025-05-12 11:12:52 -05:00
parent 8fcaf9e3a5
commit 3179170603
15 changed files with 243 additions and 20 deletions

40
deposit_bot.tscn Normal file
View File

@@ -0,0 +1,40 @@
[gd_scene load_steps=6 format=3 uid="uid://c10cvl6w5rn61"]
[ext_resource type="PackedScene" uid="uid://kft3pjbe40vx" path="res://assets/Models/DepositBot.blend" id="1_0tmrv"]
[ext_resource type="Script" uid="uid://cga1rh0t3ey77" path="res://scripts/deposit_bot.gd" id="1_2eu0f"]
[ext_resource type="Script" uid="uid://csju024nerln6" path="res://scripts/StateMachine.gd" id="1_naihy"]
[ext_resource type="Script" uid="uid://bgoq8rrojxt32" path="res://scripts/NPCIdle.gd" id="2_icugd"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yndd5"]
radius = 0.36
[node name="DepositBot" type="CharacterBody3D" node_paths=PackedStringArray("state_machine", "nav_agent")]
collision_layer = 65
collision_mask = 577
script = ExtResource("1_2eu0f")
state_machine = NodePath("StateMachine")
nav_agent = NodePath("NavigationAgent3D")
[node name="StateMachine" type="Node" parent="." node_paths=PackedStringArray("initial_state")]
script = ExtResource("1_naihy")
initial_state = NodePath("Idle")
[node name="Idle" type="Node" parent="StateMachine" node_paths=PackedStringArray("character")]
script = ExtResource("2_icugd")
wander_distance_max = 40.0
character = NodePath("../..")
move_speed = 1.0
[node name="DepositBot" parent="." instance=ExtResource("1_0tmrv")]
transform = Transform3D(-1.25, 0, -1.09278e-07, 0, 1.25, 0, 1.09278e-07, 0, -1.25, 0, 0, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_yndd5")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
path_height_offset = 0.5
avoidance_enabled = true
radius = 1.5
[connection signal="velocity_computed" from="NavigationAgent3D" to="." method="_on_navigation_agent_3d_velocity_computed"]