[gd_scene load_steps=11 format=3 uid="uid://dqy8bqf1chm8c"] [ext_resource type="PackedScene" uid="uid://dm8l36ephydnl" path="res://scenes/interaction_area.tscn" id="1_0okd0"] [ext_resource type="Script" path="res://scripts/interactables/completer/button_stand.gd" id="1_gkcm2"] [sub_resource type="CylinderShape3D" id="CylinderShape3D_jpuiw"] height = 1.4 radius = 0.3 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_q60ht"] albedo_color = Color(0.54902, 0.54902, 0.54902, 1) [sub_resource type="CylinderMesh" id="CylinderMesh_hgcvq"] material = SubResource("StandardMaterial3D_q60ht") top_radius = 0.3 bottom_radius = 0.3 height = 1.4 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_crdtx"] albedo_color = Color(0.686275, 0, 0.168627, 1) [sub_resource type="CylinderMesh" id="CylinderMesh_g1gjr"] material = SubResource("StandardMaterial3D_crdtx") top_radius = 0.2 bottom_radius = 0.2 height = 0.1 [sub_resource type="Animation" id="Animation_y5bt0"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Button: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.750413, 0)] } [sub_resource type="Animation" id="Animation_stg1c"] resource_name = "press" length = 0.2 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Button:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.1, 0.2), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Vector3(0, 0.750413, 0), Vector3(0, 0.67, 0), Vector3(0, 0.75, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_um1vs"] _data = { "RESET": SubResource("Animation_y5bt0"), "press": SubResource("Animation_stg1c") } [node name="ButtonStand" type="StaticBody3D"] script = ExtResource("1_gkcm2") [node name="CollisionShape3D" type="CollisionShape3D" parent="."] shape = SubResource("CylinderShape3D_jpuiw") [node name="Stand" type="MeshInstance3D" parent="."] mesh = SubResource("CylinderMesh_hgcvq") [node name="Button" type="MeshInstance3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.750413, 0) mesh = SubResource("CylinderMesh_g1gjr") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_um1vs") } [node name="InteractionArea" parent="." instance=ExtResource("1_0okd0")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.9, 0) [connection signal="interacted" from="InteractionArea" to="." method="_on_interaction_area_interacted"]