[gd_scene load_steps=9 format=3 uid="uid://ba17jrcaduowj"]

[ext_resource type="Goal" uid="uid://b4i4e34046n44" path="res://AI/defeat_enemy_unit.tres" id="1_b1qo1"]
[ext_resource type="Goal" uid="uid://btv8ultseri3q" path="res://AI/maintain_health.tres" id="1_jwvis"]
[ext_resource type="AnimationLibrary" uid="uid://crkh5gahl2ci6" path="res://Animation/bean_characters.res" id="2_lrpu6"]

[sub_resource type="SphereShape3D" id="SphereShape3D_5pqvg"]
radius = 15.6018

[sub_resource type="SphereShape3D" id="SphereShape3D_drlm2"]
radius = 1.0

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ss47r"]
albedo_color = Color(1, 0.24, 0.24, 1)

[sub_resource type="CapsuleMesh" id="CapsuleMesh_5r0b3"]
material = SubResource("StandardMaterial3D_ss47r")
radial_segments = 8
rings = 3

[sub_resource type="BoxMesh" id="BoxMesh_p8wvo"]
size = Vector3(0.2, 0.2, 0.5)

[node name="Tank" type="TankUnit"]
configure_team = 3
movement_speed = 1.5
collision_layer = 6
collision_mask = 0

[node name="ActorWorldState" type="EnemyWorldState" parent="."]
available_goals_inspector = [ExtResource("1_jwvis"), ExtResource("1_b1qo1")]
unique_name_in_owner = true

[node name="Planner" type="Planner" parent="."]
actions_inspector = [3, 2, 4, 5, 1]
unique_name_in_owner = true

[node name="EntityHealth" type="EntityHealth" parent="."]
injury_max = 20
wounds_max = 20
unique_name_in_owner = true

[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
unique_name_in_owner = true
path_desired_distance = 0.5
target_desired_distance = 0.2
path_height_offset = 0.5
avoidance_enabled = true
avoidance_layers = 2
avoidance_mask = 3
debug_enabled = true
debug_path_custom_color = Color(0, 0.588235, 0.270588, 1)

[node name="AwarenessArea" type="Area3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1216, 3.55442)
collision_layer = 0
collision_mask = 2
input_ray_pickable = false
monitorable = false

[node name="CollisionShape3D" type="CollisionShape3D" parent="AwarenessArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.735143)
shape = SubResource("SphereShape3D_5pqvg")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
unique_name_in_owner = true
libraries = {
"": ExtResource("2_lrpu6")
}

[node name="Eyes" type="Node3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4512, 0)

[node name="VisionTarget" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.31501, 0)

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.999222, -0.0394342, 0, 0.0394342, 0.999222, 0, 1.013, 0)
shape = SubResource("SphereShape3D_drlm2")

[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
mesh = SubResource("CapsuleMesh_5r0b3")

[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.363891, 1.24027, 0.471381)
mesh = SubResource("BoxMesh_p8wvo")
