|
@@ -2,29 +2,11 @@
|
|
|
|
|
|
[ext_resource type="Script" path="res://component/entity/collectibles/chocolate/chocolate.gd" id="1_wk24q"]
|
|
|
|
|
|
-[sub_resource type="BoxShape3D" id="BoxShape3D_cro6x"]
|
|
|
-size = Vector3(1, 1, 0.325)
|
|
|
-
|
|
|
-[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_px4jl"]
|
|
|
-albedo_color = Color(0.294006, 0.133118, 0.019403, 1)
|
|
|
-metallic_specular = 0.21
|
|
|
-
|
|
|
-[sub_resource type="BoxMesh" id="BoxMesh_c10ab"]
|
|
|
-material = SubResource("StandardMaterial3D_px4jl")
|
|
|
-size = Vector3(0.8, 1, 0.2)
|
|
|
-
|
|
|
-[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ds5yo"]
|
|
|
-albedo_color = Color(1, 0.816667, 0, 1)
|
|
|
-metallic_specular = 0.66
|
|
|
-
|
|
|
-[sub_resource type="BoxMesh" id="BoxMesh_ialpe"]
|
|
|
-material = SubResource("StandardMaterial3D_ds5yo")
|
|
|
-size = Vector3(0.85, 0.8, 0.25)
|
|
|
-
|
|
|
[sub_resource type="Animation" id="Animation_0f754"]
|
|
|
resource_name = "idle"
|
|
|
length = 4.0
|
|
|
loop_mode = 1
|
|
|
+step = 1.0
|
|
|
tracks/0/type = "rotation_3d"
|
|
|
tracks/0/imported = false
|
|
|
tracks/0/enabled = true
|
|
@@ -32,6 +14,13 @@ tracks/0/path = NodePath(".")
|
|
|
tracks/0/interp = 1
|
|
|
tracks/0/loop_wrap = true
|
|
|
tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 1, 2, 1, 0, 1, 0, 0, 4, 1, 0, 0, 0, -1)
|
|
|
+tracks/1/type = "position_3d"
|
|
|
+tracks/1/imported = false
|
|
|
+tracks/1/enabled = true
|
|
|
+tracks/1/path = NodePath(".")
|
|
|
+tracks/1/interp = 2
|
|
|
+tracks/1/loop_wrap = true
|
|
|
+tracks/1/keys = PackedFloat32Array(0, 1, 0, 0, 0, 2, 1, 0, 0.25, 0)
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_cfly2"]
|
|
|
length = 0.001
|
|
@@ -49,26 +38,48 @@ _data = {
|
|
|
"idle": SubResource("Animation_0f754")
|
|
|
}
|
|
|
|
|
|
-[node name="ChocolateTablet" type="Area3D"]
|
|
|
+[sub_resource type="BoxShape3D" id="BoxShape3D_cro6x"]
|
|
|
+size = Vector3(1, 1, 0.325)
|
|
|
+
|
|
|
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_px4jl"]
|
|
|
+albedo_color = Color(0.294006, 0.133118, 0.019403, 1)
|
|
|
+metallic_specular = 0.21
|
|
|
+
|
|
|
+[sub_resource type="BoxMesh" id="BoxMesh_c10ab"]
|
|
|
+material = SubResource("StandardMaterial3D_px4jl")
|
|
|
+size = Vector3(0.8, 1, 0.2)
|
|
|
+
|
|
|
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ds5yo"]
|
|
|
+albedo_color = Color(1, 0.816667, 0, 1)
|
|
|
+metallic_specular = 0.66
|
|
|
+
|
|
|
+[sub_resource type="BoxMesh" id="BoxMesh_ialpe"]
|
|
|
+material = SubResource("StandardMaterial3D_ds5yo")
|
|
|
+size = Vector3(0.85, 0.8, 0.25)
|
|
|
+
|
|
|
+[node name="Chocolate" type="Node3D"]
|
|
|
+
|
|
|
+[node name="ChocolateAnimation" type="AnimationPlayer" parent="."]
|
|
|
+root_node = NodePath("../ChocolateTablet")
|
|
|
+libraries = {
|
|
|
+"": SubResource("AnimationLibrary_djjxd")
|
|
|
+}
|
|
|
+autoplay = "idle"
|
|
|
+
|
|
|
+[node name="ChocolateTablet" type="Area3D" parent="."]
|
|
|
collision_layer = 32
|
|
|
collision_mask = 10
|
|
|
script = ExtResource("1_wk24q")
|
|
|
|
|
|
-[node name="ChocolateCollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
+[node name="ChocolateCollisionShape3D" type="CollisionShape3D" parent="ChocolateTablet"]
|
|
|
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 0, 0, 0)
|
|
|
shape = SubResource("BoxShape3D_cro6x")
|
|
|
|
|
|
-[node name="ChocolateMesh" type="MeshInstance3D" parent="."]
|
|
|
+[node name="ChocolateMesh" type="MeshInstance3D" parent="ChocolateTablet"]
|
|
|
mesh = SubResource("BoxMesh_c10ab")
|
|
|
|
|
|
-[node name="PaperMesh" type="MeshInstance3D" parent="."]
|
|
|
+[node name="PaperMesh" type="MeshInstance3D" parent="ChocolateTablet"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.119209, 0)
|
|
|
mesh = SubResource("BoxMesh_ialpe")
|
|
|
|
|
|
-[node name="ChocolateAnimation" type="AnimationPlayer" parent="."]
|
|
|
-libraries = {
|
|
|
-"": SubResource("AnimationLibrary_djjxd")
|
|
|
-}
|
|
|
-autoplay = "idle"
|
|
|
-
|
|
|
-[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
|
|
+[connection signal="body_entered" from="ChocolateTablet" to="ChocolateTablet" method="_on_body_entered"]
|