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

[ext_resource type="Script" uid="uid://yjsgte3x7jjw" path="res://scripts/trap.gd" id="1_6h4aj"]
[ext_resource type="ArrayMesh" uid="uid://bih57xe642hrc" path="res://models/trap.obj" id="2_oj6ox"]
[ext_resource type="Texture2D" uid="uid://cmlp8tn6mnbd" path="res://visuals/images/icons/t-bomb.png" id="3_mxvh5"]
[ext_resource type="Texture2D" uid="uid://cm288pisiir7v" path="res://visuals/images/force_panel_strip.png" id="4_oj6ox"]

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qcd3b"]
albedo_color = Color(0, 0, 1, 1)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_88ety"]
resource_local_to_scene = true
albedo_color = Color(1, 1, 0, 1)

[sub_resource type="BoxShape3D" id="BoxShape3D_dw7u0"]
size = Vector3(0.8, 1, 0.8)

[sub_resource type="BoxShape3D" id="BoxShape3D_6h4aj"]
resource_local_to_scene = true

[node name="Trap" type="Area3D"]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_6h4aj")

[node name="Model" type="MeshInstance3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0)
material_overlay = SubResource("StandardMaterial3D_qcd3b")
mesh = ExtResource("2_oj6ox")
skeleton = NodePath("")
surface_material_override/0 = SubResource("StandardMaterial3D_88ety")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
shape = SubResource("BoxShape3D_dw7u0")

[node name="Icon" type="Sprite3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0, 0.1, 0)
pixel_size = 0.0075
axis = 1
double_sided = false
texture = ExtResource("3_mxvh5")

[node name="RevealTimer" type="Timer" parent="."]
unique_name_in_owner = true

[node name="RangeArea" type="Area3D" parent="."]
unique_name_in_owner = true
collision_layer = 0
collision_mask = 6

[node name="RangeShape" type="CollisionShape3D" parent="RangeArea"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
shape = SubResource("BoxShape3D_6h4aj")

[node name="ActivationTimer" type="Timer" parent="."]
unique_name_in_owner = true
wait_time = 5.0

[node name="ForceStrip" type="Sprite3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1.4, 0, 0, 0, -6.119594e-08, 1.4, 0, -1.4, -6.119594e-08, 0, 0.1, 0)
visible = false
texture_filter = 0
texture = ExtResource("4_oj6ox")

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="RevealTimer" to="." method="_on_reveal_timeout"]
[connection signal="timeout" from="ActivationTimer" to="." method="_on_activation_timer_timeout"]
