[gd_scene load_steps=7 format=3 uid="uid://cy0x2nliyw8gw"]

[ext_resource type="Script" path="res://scripts/door.gd" id="1_qix0h"]

[sub_resource type="BoxMesh" id="BoxMesh_8iti4"]
size = Vector3(1.5, 3, 0.2)

[sub_resource type="BoxShape3D" id="BoxShape3D_pejvk"]
size = Vector3(1.5, 3, 0.2)

[sub_resource type="Animation" id="Animation_hlq2m"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0, 0)]
}

[sub_resource type="Animation" id="Animation_53g2p"]
resource_name = "open"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(1.4, 0, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_r8evj"]
_data = {
"RESET": SubResource("Animation_hlq2m"),
"open": SubResource("Animation_53g2p")
}

[node name="Door" type="Node3D"]
script = ExtResource("1_qix0h")

[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_8iti4")

[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]

[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
shape = SubResource("BoxShape3D_pejvk")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../MeshInstance3D")
libraries = {
"": SubResource("AnimationLibrary_r8evj")
}
