[gd_scene load_steps=8 format=2]

[ext_resource path="res://textures/pickups/collectable/bean.png" type="Texture" id=1]
[ext_resource path="res://objects/pickups/Collectables/SmallCollectible.gd" type="Script" id=2]
[ext_resource path="res://sounds/SFX/collect/bean_nearby.wav" type="AudioStream" id=3]

[sub_resource type="ParticlesMaterial" id=1]
emission_shape = 2
emission_box_extents = Vector3( 0.3, 0.3, 0.5 )
gravity = Vector3( 0, -1, 0 )

[sub_resource type="SpatialMaterial" id=2]
params_billboard_mode = 3
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false

[sub_resource type="QuadMesh" id=3]
material = SubResource( 2 )
size = Vector2( 0.05, 0.05 )

[sub_resource type="BoxShape" id=4]
extents = Vector3( 0.5, 0.5, 0.5 )

[node name="SmallCollectible" type="Spatial"]
pause_mode = 1
script = ExtResource( 2 )

[node name="Particles" type="Particles" parent="."]
amount = 4
lifetime = 0.5
local_coords = false
process_material = SubResource( 1 )
draw_pass_1 = SubResource( 3 )

[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform( 0.075, 0, 0, 0, 0.075, 0, 0, 0, 1, 0, 0, 0 )
texture = ExtResource( 1 )

[node name="Area" type="Area" parent="."]

[node name="CollisionShape" type="CollisionShape" parent="Area"]
shape = SubResource( 4 )

[node name="Pickup" type="AudioStreamPlayer" parent="."]

[node name="Nearby" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 3 )
unit_size = 10.0
autoplay = true

[connection signal="body_entered" from="Area" to="." method="_on_Area_body_entered"]
