OpticTraveler/Florian/Props/door.tscn
Amanda Boegysanto fda11e5a22 oktoberfest_updt
2025-09-18 19:59:51 +02:00

85 lines
2.9 KiB
Text

[gd_scene load_steps=11 format=3 uid="uid://b85ujwx0p8gvn"]
[ext_resource type="PackedScene" uid="uid://byhsp6ujjsh8m" path="res://Florian/Entity/interactable.tscn" id="1_ba8gm"]
[ext_resource type="Script" path="res://Florian/Props/door.gd" id="1_f758y"]
[ext_resource type="Texture2D" uid="uid://c0g55ydym62g0" path="res://Amanda/medieval_tavern_props_pack/textures/planks.png" id="3_v56u4"]
[sub_resource type="BoxShape3D" id="BoxShape3D_v6xrn"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_emhi6"]
albedo_color = Color(0.64319, 0.418889, 0.248661, 1)
albedo_texture = ExtResource("3_v56u4")
[sub_resource type="BoxMesh" id="BoxMesh_0phs7"]
material = SubResource("StandardMaterial3D_emhi6")
[sub_resource type="Animation" id="Animation_0phs7"]
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("DoorHinge:rotation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(0, 1.5708, 0)]
}
[sub_resource type="Animation" id="Animation_v6xrn"]
resource_name = "door_open"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("DoorHinge:rotation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(0, 1.5708, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_50cdl"]
_data = {
&"RESET": SubResource("Animation_0phs7"),
&"door_open": SubResource("Animation_v6xrn")
}
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_yrqr4"]
properties/0/path = NodePath(".:rotation")
properties/0/spawn = true
properties/0/replication_mode = 1
[node name="Door" type="Node3D"]
script = ExtResource("1_f758y")
[node name="DoorHinge" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 2, 0, 0, 0, 0.1, 0, 1, 0)
[node name="Interactable" parent="DoorHinge" instance=ExtResource("1_ba8gm")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0, -0.5)
visible = false
[node name="StaticBody3D" type="StaticBody3D" parent="DoorHinge"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="DoorHinge/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0, -0.5)
shape = SubResource("BoxShape3D_v6xrn")
[node name="MeshInstance3D" type="MeshInstance3D" parent="DoorHinge/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0, -0.5)
mesh = SubResource("BoxMesh_0phs7")
skeleton = NodePath("")
[node name="Rotator" type="Node3D" parent="DoorHinge"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_50cdl")
}
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_yrqr4")