108 lines
3.4 KiB
Plaintext
108 lines
3.4 KiB
Plaintext
[gd_scene format=3 uid="uid://bohun3ja2bcfq"]
|
|
|
|
[ext_resource type="Script" uid="uid://bgka5mmchi3bg" path="res://scripts/door.gd" id="2_kykci"]
|
|
|
|
[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.2)
|
|
|
|
[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_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="Animation" id="Animation_5e0ln"]
|
|
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, 0, 0), Vector3(0, -1.5708, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xrnhw"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_kihjj"),
|
|
&"door_close": SubResource("Animation_6gvek"),
|
|
&"door_open": SubResource("Animation_yxc4b"),
|
|
&"door_open_backwards": SubResource("Animation_5e0ln")
|
|
}
|
|
|
|
[node name="Door" type="Node3D" unique_id=2135938050]
|
|
|
|
[node name="Hinge" type="Node3D" parent="." unique_id=615803189]
|
|
transform = Transform3D(-3.6199901e-06, 0, 1, 0, 1, 0, -1, 0, -3.6199901e-06, -0.988132, 0, 0)
|
|
|
|
[node name="Door" type="StaticBody3D" parent="Hinge" unique_id=1335810390 node_paths=PackedStringArray("animation_player") groups=["interactable", "locked_door"]]
|
|
collision_layer = 3
|
|
script = ExtResource("2_kykci")
|
|
animation_player = NodePath("../../AnimationPlayer")
|
|
|
|
[node name="DoorMesh" type="MeshInstance3D" parent="Hinge/Door" unique_id=1809404518]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.988132, 0, 0)
|
|
mesh = SubResource("BoxMesh_2hxpa")
|
|
skeleton = NodePath("")
|
|
|
|
[node name="DoorCollision" type="CollisionShape3D" parent="Hinge/Door" unique_id=663950494]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.988132, 0, 0)
|
|
shape = SubResource("BoxShape3D_1r2df")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1084917534]
|
|
root_node = NodePath("../Hinge")
|
|
libraries/ = SubResource("AnimationLibrary_xrnhw")
|