[gd_scene load_steps=10 format=3 uid="uid://cw6v8kbi76qak"] [ext_resource type="Script" uid="uid://bjnv2g1ni0525" path="res://src/drag/draggable_object.gd" id="1_o7vug"] [ext_resource type="ArrayMesh" uid="uid://dddqboph2ygmw" path="res://assets/meshes/jar.res" id="2_o7vug"] [ext_resource type="Script" uid="uid://ctu7escah5lo1" path="res://src/interactible/interaction_source.gd" id="3_00jpx"] [ext_resource type="Script" uid="uid://e8xu57ewvb5a" path="res://src/interactible/proximity_rotator.gd" id="4_ymvgp"] [ext_resource type="ArrayMesh" uid="uid://dxeseuqcwne1m" path="res://assets/meshes/jar_fill.res" id="6_kfk5m"] [ext_resource type="Script" uid="uid://co33kqhl3n06u" path="res://src/interactible/destructor.gd" id="7_00jpx"] [sub_resource type="CylinderShape3D" id="CylinderShape3D_kfk5m"] height = 0.5024414 radius = 0.22460938 [sub_resource type="SphereShape3D" id="SphereShape3D_vcwhe"] radius = 0.49649125 [sub_resource type="Curve" id="Curve_qb0nw"] _data = [Vector2(0, 0), 0.0, 0.067761436, 0, 0, Vector2(0.75, 1), 0.0, 0.0, 0, 0] point_count = 2 [node name="Flask" type="Area3D"] script = ExtResource("1_o7vug") [node name="Jar" type="MeshInstance3D" parent="."] transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, -0.20877336, 0) mesh = ExtResource("2_o7vug") [node name="DragArea" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.04284668, 0) shape = SubResource("CylinderShape3D_kfk5m") [node name="InteractionArea" type="Area3D" parent="." node_paths=PackedStringArray("interaction_dialog")] collision_layer = 4 collision_mask = 4 input_ray_pickable = false script = ExtResource("3_00jpx") interaction_dialog = NodePath("../InteractionDialog") [node name="InteractionArea" type="CollisionShape3D" parent="InteractionArea"] shape = SubResource("SphereShape3D_vcwhe") [node name="ProximityRotator" type="Node" parent="." node_paths=PackedStringArray("rotated")] script = ExtResource("4_ymvgp") rotated = NodePath("..") proximity_radius = 0.1 modification_curve = SubResource("Curve_qb0nw") [node name="InteractionDialog" type="ConfirmationDialog" parent="."] oversampling_override = 1.0 position = Vector2i(0, 36) size = Vector2i(200, 131) borderless = true [node name="VBoxContainer" type="VBoxContainer" parent="InteractionDialog"] offset_left = 8.0 offset_top = 8.0 offset_right = 192.0 offset_bottom = 82.0 [node name="Label" type="Label" parent="InteractionDialog/VBoxContainer"] layout_mode = 2 text = "Введите объём" [node name="HBoxContainer" type="HBoxContainer" parent="InteractionDialog/VBoxContainer"] layout_mode = 2 [node name="SpinBox" type="SpinBox" parent="InteractionDialog/VBoxContainer/HBoxContainer"] layout_mode = 2 max_value = 10.0 step = 0.01 allow_greater = true suffix = "мг" [node name="MeshInstance3D" type="MeshInstance3D" parent="."] transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, -0.20759426, 0) mesh = ExtResource("6_kfk5m") [node name="DestructorOnStop" type="Node" parent="." node_paths=PackedStringArray("node")] script = ExtResource("7_00jpx") node = NodePath("..") [connection signal="drag_ended" from="." to="InteractionArea" method="request_interaction"] [connection signal="interaction_closed" from="InteractionArea" to="DestructorOnStop" method="destruct"] [connection signal="interaction_reciever_entered" from="InteractionArea" to="ProximityRotator" method="_on_interaction_area_interaction_reciever_entered"] [connection signal="interaction_reciever_exited" from="InteractionArea" to="ProximityRotator" method="_on_interaction_area_interaction_reciever_exited"]