[gd_scene load_steps=5 format=2] [ext_resource path="res://assets/Food/lowpoly fruits.obj" type="ArrayMesh" id=1] [ext_resource path="res://Food_Pickup.gd" type="Script" id=2] [sub_resource type="BoxShape" id=1] extents = Vector3( 0.25, 0.25, 0.25 ) [sub_resource type="Animation" id=2] resource_name = "Rotate" length = 7.0 loop = true tracks/0/type = "value" tracks/0/path = NodePath("Holder/lowpoly fruits:rotation_degrees") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 3.4, 7 ), "transitions": PoolRealArray( 1, 1, 1 ), "update": 0, "values": [ Vector3( 0, 0, 0 ), Vector3( 0, 180, 0 ), Vector3( 0, 360, 0 ) ] } [node name="Food_Pickup" type="Spatial"] script = ExtResource( 2 ) [node name="Holder" type="Spatial" parent="."] [node name="lowpoly fruits" type="MeshInstance" parent="Holder"] mesh = ExtResource( 1 ) material/0 = null material/1 = null material/2 = null material/3 = null material/4 = null material/5 = null material/6 = null material/7 = null material/8 = null material/9 = null material/10 = null material/11 = null [node name="Food_Pickup_Trigger" type="Area" parent="Holder"] transform = Transform( 14, 0, 0, 0, 4, 0, 0, 0, 14, 0, 0, 0 ) input_ray_pickable = false [node name="Shape_Kit" type="CollisionShape" parent="Holder/Food_Pickup_Trigger"] shape = SubResource( 1 ) [node name="AnimationFood" type="AnimationPlayer" parent="."] autoplay = "Rotate" anims/Rotate = SubResource( 2 )