source: Studio/Food_Pickup.tscn@ 49e3bfa

sandbox
Last change on this file since 49e3bfa was 49e3bfa, checked in by Kevin Chapman <victory2b@…>, 3 years ago

(WIP) Added Spinning Food. Test object for restoring food to player.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1[gd_scene load_steps=5 format=2]
2
3[ext_resource path="res://assets/Food/lowpoly fruits.obj" type="ArrayMesh" id=1]
4[ext_resource path="res://Food_Pickup.gd" type="Script" id=2]
5
6[sub_resource type="BoxShape" id=1]
7extents = Vector3( 0.25, 0.25, 0.25 )
8
9[sub_resource type="Animation" id=2]
10resource_name = "Rotate"
11length = 7.0
12loop = true
13tracks/0/type = "value"
14tracks/0/path = NodePath("Holder/lowpoly fruits:rotation_degrees")
15tracks/0/interp = 1
16tracks/0/loop_wrap = true
17tracks/0/imported = false
18tracks/0/enabled = true
19tracks/0/keys = {
20"times": PoolRealArray( 0, 3.4, 7 ),
21"transitions": PoolRealArray( 1, 1, 1 ),
22"update": 0,
23"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 180, 0 ), Vector3( 0, 360, 0 ) ]
24}
25
26[node name="Food_Pickup" type="Spatial"]
27script = ExtResource( 2 )
28
29[node name="Holder" type="Spatial" parent="."]
30
31[node name="lowpoly fruits" type="MeshInstance" parent="Holder"]
32transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
33mesh = ExtResource( 1 )
34material/0 = null
35material/1 = null
36material/2 = null
37material/3 = null
38material/4 = null
39material/5 = null
40material/6 = null
41material/7 = null
42material/8 = null
43material/9 = null
44material/10 = null
45material/11 = null
46
47[node name="Food_Pickup_Trigger" type="Area" parent="Holder"]
48transform = Transform( 14, 0, 0, 0, 4, 0, 0, 0, 14, 0, 0, 0 )
49input_ray_pickable = false
50
51[node name="Shape_Kit" type="CollisionShape" parent="Holder/Food_Pickup_Trigger"]
52shape = SubResource( 1 )
53
54[node name="AnimationFood" type="AnimationPlayer" parent="."]
55autoplay = "Rotate"
56anims/Rotate = SubResource( 2 )
Note: See TracBrowser for help on using the repository browser.