[gd_scene load_steps=7 format=3 uid="uid://ce7nfed54mwps"] [ext_resource type="Script" path="res://Button.gd" id="1_3i6hf"] [sub_resource type="BoxMesh" id="BoxMesh_ft4xr"] size = Vector3(0.5, 0.3, 0.1) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_r4q7f"] albedo_color = Color(1, 0, 0, 1) [sub_resource type="BoxShape3D" id="BoxShape3D_6r330"] size = Vector3(0.5, 0.3, 0.1) [sub_resource type="Animation" id="Animation_mhyv4"] resource_name = "trigger" length = 0.5 tracks/0/type = "bezier" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("CSGMesh3D:position:z") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0, 0), "points": PackedFloat32Array(0.05, -0.25, 0, 0, -0.025, 0.025, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0, 0.5) } tracks/1/type = "bezier" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("CSGMesh3D:scale:z") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "handle_modes": PackedInt32Array(0, 0), "points": PackedFloat32Array(1, -0.25, 0, 0, -0.5, 0.5, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0, 0.5) } [sub_resource type="AnimationLibrary" id="AnimationLibrary_25oyh"] _data = { "trigger": SubResource("Animation_mhyv4") } [node name="Button" type="StaticBody3D"] script = ExtResource("1_3i6hf") [node name="CSGMesh3D" type="CSGMesh3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.05) mesh = SubResource("BoxMesh_ft4xr") material = SubResource("StandardMaterial3D_r4q7f") [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.0497138) shape = SubResource("BoxShape3D_6r330") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_25oyh") } [node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]