[gd_scene load_steps=8 format=3 uid="uid://v7bv81krh12e"] [ext_resource type="PackedScene" uid="uid://bwwpi0itor6cw" path="res://island/PineappleMesh.tscn" id="1_ndmmp"] [ext_resource type="Script" path="res://island/MoveTowardsPlayer.gd" id="2_d3itl"] [ext_resource type="AudioStream" uid="uid://lkftwgdun745" path="res://assets/pop.wav" id="3_b3ttd"] [ext_resource type="Script" path="res://island/Pop.gd" id="4_rn5e2"] [sub_resource type="CylinderShape3D" id="CylinderShape3D_l6rok"] height = 0.9 radius = 0.3 [sub_resource type="CylinderShape3D" id="CylinderShape3D_qf6hb"] height = 6.0 radius = 3.0 [sub_resource type="CylinderShape3D" id="CylinderShape3D_w04xf"] height = 1.4 radius = 0.7 [node name="Pineapple" type="RigidBody3D"] collision_layer = 2 collision_mask = 5 lock_rotation = true linear_damp = 1.0 [node name="Shape" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.45, 0) shape = SubResource("CylinderShape3D_l6rok") [node name="PineappleMesh" parent="." instance=ExtResource("1_ndmmp")] [node name="Pop" type="AudioStreamPlayer3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.1, 0.5) stream = ExtResource("3_b3ttd") attenuation_filter_cutoff_hz = 20500.0 script = ExtResource("4_rn5e2") [node name="MoveTowardsPlayer" type="Node3D" parent="." node_paths=PackedStringArray("target")] script = ExtResource("2_d3itl") force_multiplier = 1250.0 target = NodePath("..") [node name="MagnetArea" type="Area3D" parent="MoveTowardsPlayer"] collision_layer = 0 monitorable = false [node name="Shape" type="CollisionShape3D" parent="MoveTowardsPlayer/MagnetArea"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) shape = SubResource("CylinderShape3D_qf6hb") [node name="CaptureArea" type="Area3D" parent="MoveTowardsPlayer"] collision_layer = 0 collision_mask = 4 monitorable = false [node name="Shape" type="CollisionShape3D" parent="MoveTowardsPlayer/CaptureArea"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) shape = SubResource("CylinderShape3D_w04xf") [connection signal="body_entered" from="MoveTowardsPlayer/MagnetArea" to="MoveTowardsPlayer" method="_on_magnet_area_body_entered"] [connection signal="body_entered" from="MoveTowardsPlayer/CaptureArea" to="MoveTowardsPlayer" method="_on_capture_area_body_entered"]