[gd_scene format=3 uid="uid://bekw2mdkpbiu1"] [ext_resource type="Script" uid="uid://bgka5mmchi3bg" path="res://scripts/door.gd" id="1_ix0r3"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_60uuc"] albedo_color = Color(0.490196, 0.345098, 0.223529, 1) [sub_resource type="BoxMesh" id="BoxMesh_2hxpa"] material = SubResource("StandardMaterial3D_60uuc") size = Vector3(2, 3, 0.2) [sub_resource type="BoxShape3D" id="BoxShape3D_1r2df"] size = Vector3(2, 3, 0.300488) [sub_resource type="Animation" id="Animation_kihjj"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, 1.5708, 0)] } [sub_resource type="Animation" id="Animation_6gvek"] resource_name = "door_close" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:rotation") 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, 1.5708, 0), Vector3(0, 0, 0)] } [sub_resource type="Animation" id="Animation_bvoq7"] resource_name = "door_open_backwards" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:rotation") 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, 1.5708, 0), Vector3(0, 0, 0)] } [sub_resource type="Animation" id="Animation_yxc4b"] resource_name = "door_open" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:rotation") 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, 1.5708, 0), Vector3(0, 3.14159, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_xrnhw"] _data = { &"RESET": SubResource("Animation_kihjj"), &"door_close": SubResource("Animation_6gvek"), &"door_open_backwards": SubResource("Animation_bvoq7"), &"door_open_forwards": SubResource("Animation_yxc4b") } [node name="OpenClosedDoor" type="Node3D" unique_id=897210283] [node name="Hinge" type="Node3D" parent="." unique_id=156875671] transform = Transform3D(-3.6199901e-06, 0, 1, 0, 1, 0, -1, 0, -3.6199901e-06, -0.988132, 0, 0) [node name="OpenCloseDoor" type="StaticBody3D" parent="Hinge" unique_id=1850549136 node_paths=PackedStringArray("animation_player") groups=["interactable"]] collision_layer = 3 script = ExtResource("1_ix0r3") animation_player = NodePath("../../AnimationPlayer") [node name="DoorMesh" type="CSGMesh3D" parent="Hinge/OpenCloseDoor" unique_id=1792648438] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.988132, 0, 0) use_collision = true mesh = SubResource("BoxMesh_2hxpa") [node name="DoorCollision" type="CollisionShape3D" parent="Hinge/OpenCloseDoor" unique_id=1129896260] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.988132, 0, -0.00698239) shape = SubResource("BoxShape3D_1r2df") [node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1409124104] root_node = NodePath("../Hinge") libraries/ = SubResource("AnimationLibrary_xrnhw") [node name="InteractLabel" type="Label3D" parent="." unique_id=1115718379] transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -0.736963, 0.593289, -0.953882) visible = false text = "[E] Open" [node name="InteractLabel2" type="Label3D" parent="." unique_id=21398400] transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -1.13622, 0.593289, -0.953882) visible = false text = "[E] Open"