69 lines
2.4 KiB
Text
69 lines
2.4 KiB
Text
[gd_scene format=3 uid="uid://cbpl3s326ok8d"]
|
|
|
|
[ext_resource type="Script" uid="uid://d0n5sjpvtitix" path="res://entities/usable/button/button.gd" id="1_r4dn2"]
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_b5l5s"]
|
|
size = Vector3(1, 1, 0.36279297)
|
|
|
|
[sub_resource type="CylinderMesh" id="CylinderMesh_b5l5s"]
|
|
top_radius = 0.25927734
|
|
bottom_radius = 0.25927734
|
|
height = 0.12780762
|
|
|
|
[sub_resource type="Animation" id="Animation_r4krq"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("MeshInstance3D2: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.0034615695, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_friup"]
|
|
resource_name = "pressed"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("MeshInstance3D2:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.06, 0.26, 0.39),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 0.124999836),
|
|
"update": 0,
|
|
"values": [Vector3(0, -0.0034615695, 0), Vector3(0, -0.0034615695, -0.013730846), Vector3(0, -0.0034615695, -0.013730846), Vector3(0, -0.003, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cd38i"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_r4krq"),
|
|
&"pressed": SubResource("Animation_friup")
|
|
}
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_b5l5s"]
|
|
size = Vector3(0.1, 0.1, 0.1)
|
|
|
|
[node name="Button" type="StaticBody3D" unique_id=1942355311]
|
|
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0)
|
|
script = ExtResource("1_r4dn2")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=192699806]
|
|
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0, -0.043018993)
|
|
mesh = SubResource("BoxMesh_b5l5s")
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="." unique_id=1753022499]
|
|
transform = Transform3D(0.2, 0, 0, 0, -8.742278e-09, -0.2, 0, 0.2, -8.742278e-09, 0, -0.0034615695, 0)
|
|
mesh = SubResource("CylinderMesh_b5l5s")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=587532613]
|
|
unique_name_in_owner = true
|
|
libraries/ = SubResource("AnimationLibrary_cd38i")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=612145148]
|
|
shape = SubResource("BoxShape3D_b5l5s")
|