|
@@ -1,4 +1,4 @@
|
|
-[gd_scene load_steps=7 format=3 uid="uid://ba3gf7iy3mxbq"]
|
|
|
|
|
|
+[gd_scene load_steps=10 format=3 uid="uid://ba3gf7iy3mxbq"]
|
|
|
|
|
|
[ext_resource type="Script" path="res://component/entity/collectibles/chocolate/chocolate.gd" id="1_wk24q"]
|
|
[ext_resource type="Script" path="res://component/entity/collectibles/chocolate/chocolate.gd" id="1_wk24q"]
|
|
|
|
|
|
@@ -21,12 +21,41 @@ metallic_specular = 0.66
|
|
material = SubResource("StandardMaterial3D_ds5yo")
|
|
material = SubResource("StandardMaterial3D_ds5yo")
|
|
size = Vector3(0.85, 0.8, 0.25)
|
|
size = Vector3(0.85, 0.8, 0.25)
|
|
|
|
|
|
|
|
+[sub_resource type="Animation" id="Animation_0f754"]
|
|
|
|
+resource_name = "idle"
|
|
|
|
+length = 4.0
|
|
|
|
+loop_mode = 1
|
|
|
|
+tracks/0/type = "rotation_3d"
|
|
|
|
+tracks/0/imported = false
|
|
|
|
+tracks/0/enabled = true
|
|
|
|
+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)
|
|
|
|
+
|
|
|
|
+[sub_resource type="Animation" id="Animation_cfly2"]
|
|
|
|
+length = 0.001
|
|
|
|
+tracks/0/type = "rotation_3d"
|
|
|
|
+tracks/0/imported = false
|
|
|
|
+tracks/0/enabled = true
|
|
|
|
+tracks/0/path = NodePath(".")
|
|
|
|
+tracks/0/interp = 1
|
|
|
|
+tracks/0/loop_wrap = true
|
|
|
|
+tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 1)
|
|
|
|
+
|
|
|
|
+[sub_resource type="AnimationLibrary" id="AnimationLibrary_djjxd"]
|
|
|
|
+_data = {
|
|
|
|
+"RESET": SubResource("Animation_cfly2"),
|
|
|
|
+"idle": SubResource("Animation_0f754")
|
|
|
|
+}
|
|
|
|
+
|
|
[node name="ChocolateTablet" type="Area3D"]
|
|
[node name="ChocolateTablet" type="Area3D"]
|
|
collision_layer = 32
|
|
collision_layer = 32
|
|
collision_mask = 10
|
|
collision_mask = 10
|
|
script = ExtResource("1_wk24q")
|
|
script = ExtResource("1_wk24q")
|
|
|
|
|
|
-[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
|
|
|
+[node name="ChocolateCollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
|
+transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 0, 0, 0)
|
|
shape = SubResource("BoxShape3D_cro6x")
|
|
shape = SubResource("BoxShape3D_cro6x")
|
|
|
|
|
|
[node name="ChocolateMesh" type="MeshInstance3D" parent="."]
|
|
[node name="ChocolateMesh" type="MeshInstance3D" parent="."]
|
|
@@ -36,4 +65,10 @@ mesh = SubResource("BoxMesh_c10ab")
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.119209, 0)
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.119209, 0)
|
|
mesh = SubResource("BoxMesh_ialpe")
|
|
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="." to="." method="_on_body_entered"]
|