-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
spikes.tscn
93 lines (81 loc) · 2.79 KB
/
spikes.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[gd_scene load_steps=7 format=3 uid="uid://dpelgsr4toyj5"]
[ext_resource type="PackedScene" uid="uid://b5lfunj0ui3a5" path="res://assets/objects/spikesLarge.glb" id="1_rfj3w"]
[ext_resource type="Script" path="res://spikes.gd" id="1_rqdij"]
[sub_resource type="Animation" id="Animation_rc4yg"]
resource_name = "move"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("spikesLarge:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5, 1.2, 2),
"transitions": PackedFloat32Array(5.27803, 1, 1, 1),
"update": 0,
"values": [Vector3(2.08165e-12, -0.9, 2.08165e-12), Vector3(0, 0, 0), Vector3(0, 0, 0), Vector3(2.08165e-12, -0.9, 2.08165e-12)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Area3D:monitoring")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5, 1.8),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [false, true, false]
}
[sub_resource type="Animation" id="Animation_513ya"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("spikesLarge:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(2.08165e-12, -0.9, 2.08165e-12)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Area3D:monitoring")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_hl1bp"]
_data = {
"RESET": SubResource("Animation_513ya"),
"move": SubResource("Animation_rc4yg")
}
[sub_resource type="BoxShape3D" id="BoxShape3D_wi57g"]
size = Vector3(2.01758, 0.787354, 1.98633)
[node name="Spikes" type="Node3D"]
script = ExtResource("1_rqdij")
[node name="spikesLarge" parent="." instance=ExtResource("1_rfj3w")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, -0.9, 2.08165e-12)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_hl1bp")
}
autoplay = "RESET"
[node name="Area3D" type="Area3D" parent="."]
collision_mask = 2
monitoring = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.401945, 0)
shape = SubResource("BoxShape3D_wi57g")
[node name="Timer" type="Timer" parent="."]
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]