diff --git a/burger.tscn b/burger.tscn new file mode 100644 index 0000000..e16b47c --- /dev/null +++ b/burger.tscn @@ -0,0 +1,74 @@ +[gd_scene format=3 uid="uid://dpot5qie20vf6"] + +[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_fco8w"] +[ext_resource type="Texture2D" uid="uid://cexxfyw03hr81" path="res://Textures/1.png" id="2_r8jvx"] +[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="3_qixic"] +[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="4_bw8vh"] +[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="5_w8sii"] +[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="6_mvnl5"] +[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="7_wqxjj"] +[ext_resource type="Script" uid="uid://bs7cxydoxk1cx" path="res://cookable_item.gd" id="8_t4l03"] +[ext_resource type="PackedScene" uid="uid://cucc3gaqu2nab" path="res://Charcoal.tscn" id="9_x1g8b"] +[ext_resource type="Script" uid="uid://dounic663dn5q" path="res://combinable_item.gd" id="10_qe0ug"] +[ext_resource type="Script" uid="uid://coidnv8b2yvxr" path="res://combine_recipe.gd" id="11_dq5p0"] +[ext_resource type="Script" uid="uid://e3im02nq5cye" path="res://combine_zone.gd" id="12_7llnd"] + +[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"] +height = 0.063323975 +radius = 0.12011719 + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bvwq1"] +albedo_texture = ExtResource("2_r8jvx") + +[sub_resource type="Resource" id="Resource_lc22d"] +script = ExtResource("5_w8sii") +closed_pose = ExtResource("4_bw8vh") +metadata/_custom_type_script = "uid://dvobm6vcfnqe8" + +[sub_resource type="Resource" id="Resource_qyiot"] +script = ExtResource("5_w8sii") +closed_pose = ExtResource("7_wqxjj") +metadata/_custom_type_script = "uid://dvobm6vcfnqe8" + +[sub_resource type="Resource" id="Resource_recipe_cube"] +script = ExtResource("11_dq5p0") +ingredient_id = &"cube" +result = ExtResource("9_x1g8b") + +[sub_resource type="BoxShape3D" id="BoxShape3D_combine"] +size = Vector3(0.16, 0.16, 0.16) + +[node name="burger" unique_id=1675596942 instance=ExtResource("1_fco8w")] + +[node name="CollisionShape3D" parent="." index="0"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0005453825, 0) +shape = SubResource("CylinderShape3D_fco8w") + +[node name="CSGCylinder3D" type="CSGCylinder3D" parent="." index="1" unique_id=59319982] +radius = 0.1 +height = 0.03 +material = SubResource("StandardMaterial3D_bvwq1") + +[node name="GrabPointHandLeft" parent="." index="2" unique_id=1571481674 instance=ExtResource("3_qixic")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.067650706, 0.04601878, -0.08606844) +hand_pose = SubResource("Resource_lc22d") + +[node name="GrabPointHandRight" parent="." index="3" unique_id=514404634 instance=ExtResource("6_mvnl5")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06531982, 0.042291984, -0.08604182) +hand_pose = SubResource("Resource_qyiot") + +[node name="CookableItem" type="Node" parent="." index="4" unique_id=1139889801] +script = ExtResource("8_t4l03") +cooking_time = 2.0 +turns_into = ExtResource("9_x1g8b") + +[node name="CombinableItem" type="Node" parent="." index="5" unique_id=1265358312] +script = ExtResource("10_qe0ug") +id = &"burger" +recipes = Array[ExtResource("11_dq5p0")]([SubResource("Resource_recipe_cube")]) + +[node name="CombineZone" type="Area3D" parent="." index="6" unique_id=1412308162] +script = ExtResource("12_7llnd") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="CombineZone" index="0" unique_id=1926800015] +shape = SubResource("BoxShape3D_combine") diff --git a/main.tscn b/main.tscn index 6331e03..6c22ef0 100644 --- a/main.tscn +++ b/main.tscn @@ -7,6 +7,7 @@ [ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://Hob.tscn" id="3_lquwl"] [ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://Counter.tscn" id="4_7mycd"] [ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://Textures/sky/NightSkyHDRI009_16K.tres" id="6_7mycd"] +[ext_resource type="PackedScene" uid="uid://dpot5qie20vf6" path="res://burger.tscn" id="8_5vw27"] [sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"] size = Vector3(5, 0.1, 5) @@ -64,3 +65,6 @@ visible = false light_color = Color(1, 0.38431373, 0, 1) light_energy = 1.784 shadow_enabled = true + +[node name="PickableObject3" parent="." unique_id=1428188966 instance=ExtResource("8_5vw27")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.572903, -1.1190817)