41 lines
1.7 KiB
Plaintext
41 lines
1.7 KiB
Plaintext
[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"]
|