diff --git a/BurgerBuns.tscn b/BurgerBuns.tscn index 78f647f..9e531f0 100644 --- a/BurgerBuns.tscn +++ b/BurgerBuns.tscn @@ -6,6 +6,9 @@ [ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_wb51u"] [ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="5_wqyr2"] [ext_resource type="Animation" uid="uid://bediglpx0rj7i" path="res://addons/godot-xr-tools/hands/animations/left/Grip 5.res" id="6_ftab3"] +[ext_resource type="Script" uid="uid://dounic663dn5q" path="res://combinable_item.gd" id="7_wb51u"] +[ext_resource type="Script" uid="uid://coidnv8b2yvxr" path="res://combine_recipe.gd" id="8_wqyr2"] +[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://PickupCube.tscn" id="9_ftab3"] [sub_resource type="CylinderShape3D" id="CylinderShape3D_vlqg6"] height = 0.11 @@ -24,6 +27,12 @@ metadata/_custom_type_script = "uid://dvobm6vcfnqe8" [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_hoqox"] albedo_color = Color(0.6784191, 0.54546416, 0.016760282, 1) +[sub_resource type="Resource" id="Resource_vlqg6"] +script = ExtResource("8_wqyr2") +ingredient_id = &"cooked_burger" +result = ExtResource("9_ftab3") +metadata/_custom_type_script = "uid://coidnv8b2yvxr" + [node name="BurgerBuns" unique_id=1088240294 instance=ExtResource("1_g1t48")] [node name="CollisionShape3D" parent="." index="0"] @@ -64,3 +73,8 @@ height = 0.04 sides = 16 cone = true material = SubResource("StandardMaterial3D_hoqox") + +[node name="CombinableItem" type="Node" parent="." index="4" unique_id=1863011945] +script = ExtResource("7_wb51u") +id = &"burger_buns" +recipes = Array[ExtResource("8_wqyr2")]([SubResource("Resource_vlqg6")]) diff --git a/JonScene.tscn b/JonScene.tscn index 45fcd7f..6a474d0 100644 --- a/JonScene.tscn +++ b/JonScene.tscn @@ -9,6 +9,8 @@ [ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://Textures/sky/NightSkyHDRI009_16K.tres" id="7_a81vl"] [ext_resource type="PackedScene" uid="uid://c0lknik4noobs" path="res://BurgerBuns.tscn" id="8_wlcqk"] [ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://BurgerBunsDispenser.tscn" id="9_wlcqk"] +[ext_resource type="PackedScene" uid="uid://bp3v1jl8pctro" path="res://plate.tscn" id="10_rbb5l"] +[ext_resource type="PackedScene" uid="uid://dpot5qie20vf6" path="res://burger.tscn" id="11_65p64"] [sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"] size = Vector3(5, 0.1, 5) @@ -51,10 +53,10 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.29336345, 0.8981018, -1.484 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.73186195, 0.8981018, -1.484) [node name="PickableObject" parent="." unique_id=1675596942 instance=ExtResource("6_65p64")] -transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, -0.70505303, 1.5761534, -1.0317149) +transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, 0.5842906, 1.5761534, -1.8163961) [node name="PickableObject2" parent="." unique_id=713087634 instance=ExtResource("6_65p64")] -transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, 0.28315204, 1.5607953, -1.0657519) +transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, -0.14558735, 1.5607953, -1.8242048) [node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250] environment = SubResource("Environment_bvwq1") @@ -67,3 +69,12 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.832131, 0.40028095, -1.481 [node name="BurgerBuns2" parent="." unique_id=1909843084 instance=ExtResource("8_wlcqk")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.1282921, 1.4976386, -1.0923254) + +[node name="Plate" parent="." unique_id=190487773 instance=ExtResource("10_rbb5l")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6570369, 1.4458435, -1.135189) + +[node name="burger" parent="." unique_id=1417604760 instance=ExtResource("11_65p64")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.9129968, 1.4235804, -1.0793439) + +[node name="burger2" parent="." unique_id=1584460510 instance=ExtResource("11_65p64")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.40345573, 1.4235804, -1.0793439) diff --git a/burger.tscn b/burger.tscn index 8a29388..b43e635 100644 --- a/burger.tscn +++ b/burger.tscn @@ -8,9 +8,7 @@ [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="PackedScene" uid="uid://cfc4ho67u4r5e" path="res://cooked_burger.tscn" id="9_r8jvx"] [ext_resource type="Script" uid="uid://e3im02nq5cye" path="res://combine_zone.gd" id="12_7llnd"] [sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"] @@ -30,11 +28,6 @@ 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) @@ -61,14 +54,9 @@ 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") +turns_into = ExtResource("9_r8jvx") -[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] +[node name="CombineZone" type="Area3D" parent="." index="5" unique_id=1412308162] script = ExtResource("12_7llnd") [node name="CollisionShape3D" type="CollisionShape3D" parent="CombineZone" index="0" unique_id=1926800015] diff --git a/cooked_burger.tscn b/cooked_burger.tscn new file mode 100644 index 0000000..88e6c2a --- /dev/null +++ b/cooked_burger.tscn @@ -0,0 +1,75 @@ +[gd_scene format=3 uid="uid://cfc4ho67u4r5e"] + +[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_ut7mg"] +[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="3_pkevi"] +[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="4_dq7qw"] +[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="5_ychvb"] +[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="6_etdv2"] +[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="7_rl64h"] +[ext_resource type="Script" uid="uid://bs7cxydoxk1cx" path="res://cookable_item.gd" id="8_w5t5h"] +[ext_resource type="PackedScene" uid="uid://cucc3gaqu2nab" path="res://Charcoal.tscn" id="9_e6kn1"] +[ext_resource type="Script" uid="uid://dounic663dn5q" path="res://combinable_item.gd" id="10_nq1op"] +[ext_resource type="Script" uid="uid://coidnv8b2yvxr" path="res://combine_recipe.gd" id="11_rjayc"] +[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://PickupCube.tscn" id="11_ut7mg"] +[ext_resource type="Script" uid="uid://e3im02nq5cye" path="res://combine_zone.gd" id="12_4dmro"] + +[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"] +height = 0.063323975 +radius = 0.12011719 + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6l01i"] +albedo_color = Color(0.29, 0.101500005, 0, 1) + +[sub_resource type="Resource" id="Resource_lc22d"] +script = ExtResource("5_ychvb") +closed_pose = ExtResource("4_dq7qw") +metadata/_custom_type_script = "uid://dvobm6vcfnqe8" + +[sub_resource type="Resource" id="Resource_qyiot"] +script = ExtResource("5_ychvb") +closed_pose = ExtResource("7_rl64h") +metadata/_custom_type_script = "uid://dvobm6vcfnqe8" + +[sub_resource type="Resource" id="Resource_recipe_cube"] +script = ExtResource("11_rjayc") +ingredient_id = &"burger_buns" +result = ExtResource("11_ut7mg") + +[sub_resource type="BoxShape3D" id="BoxShape3D_combine"] +size = Vector3(0.16, 0.16, 0.16) + +[node name="CookedBurger" unique_id=1675596942 instance=ExtResource("1_ut7mg")] + +[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.08300781 +height = 0.03 +sides = 16 +material = SubResource("StandardMaterial3D_6l01i") + +[node name="GrabPointHandLeft" parent="." index="2" unique_id=1571481674 instance=ExtResource("3_pkevi")] +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_etdv2")] +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_w5t5h") +cooking_time = 2.0 +turns_into = ExtResource("9_e6kn1") + +[node name="CombinableItem" type="Node" parent="." index="5" unique_id=1265358312] +script = ExtResource("10_nq1op") +id = &"cooked_burger" +recipes = Array[ExtResource("11_rjayc")]([SubResource("Resource_recipe_cube")]) + +[node name="CombineZone" type="Area3D" parent="." index="6" unique_id=1412308162] +script = ExtResource("12_4dmro") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="CombineZone" index="0" unique_id=1926800015] +shape = SubResource("BoxShape3D_combine")