|
|
@ -1,8 +1,11 @@ |
|
|
|
[gd_scene load_steps=6 format=3 uid="uid://bn2olldntd7a6"] |
|
|
|
[gd_scene load_steps=7 format=3 uid="uid://bn2olldntd7a6"] |
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://dkd2qbndc3q1o" path="res://scenes/blocks/dropped_block.gd" id="1_50ggx"] |
|
|
|
[ext_resource type="PackedScene" uid="uid://col07xd76y60h" path="res://scenes/blocks/block.tscn" id="1_chlk1"] |
|
|
|
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_5kft2"] |
|
|
|
radius = 1.0 |
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_kym7p"] |
|
|
|
length = 0.001 |
|
|
|
tracks/0/type = "value" |
|
|
@ -72,8 +75,17 @@ script = ExtResource("1_50ggx") |
|
|
|
[node name="Block" parent="." instance=ExtResource("1_chlk1")] |
|
|
|
transform = Transform3D(0.965926, -0.258819, 0, 0.258819, 0.965926, 0, 0, 0, 1, 0, 0, 0) |
|
|
|
|
|
|
|
[node name="PickupArea" type="Area3D" parent="Block"] |
|
|
|
collision_layer = 4 |
|
|
|
collision_mask = 2 |
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Block/PickupArea"] |
|
|
|
shape = SubResource("SphereShape3D_5kft2") |
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."] |
|
|
|
libraries = { |
|
|
|
&"": SubResource("AnimationLibrary_kym7p") |
|
|
|
} |
|
|
|
autoplay = "start_animation" |
|
|
|
|
|
|
|
[connection signal="body_entered" from="Block/PickupArea" to="." method="_on_pickup_area_body_entered"] |