-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
spike_block.tscn
66 lines (55 loc) · 2.01 KB
/
spike_block.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
[gd_scene load_steps=7 format=3 uid="uid://ctuim7nbx1ofk"]
[ext_resource type="Script" path="res://spike_block.gd" id="1_hw4pu"]
[ext_resource type="PackedScene" uid="uid://bpxl024a8jq24" path="res://assets/objects/spikeBlockWide.glb" id="1_l73pe"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wch0k"]
height = 8.12767
radius = 1.53401
[sub_resource type="Animation" id="Animation_d410p"]
resource_name = "rotate"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Pivot:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(1.5708, 3.48787e-16, 3.48787e-16)]
}
[sub_resource type="Animation" id="Animation_6tgih"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Pivot:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0odae"]
_data = {
"RESET": SubResource("Animation_6tgih"),
"rotate": SubResource("Animation_d410p")
}
[node name="SpikeBlock" type="Area3D"]
collision_mask = 2
script = ExtResource("1_hw4pu")
[node name="Pivot" type="Node3D" parent="."]
[node name="spikeBlockWide2" parent="Pivot" instance=ExtResource("1_l73pe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.9983, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(-4.37114e-08, -1, 3.48787e-16, 1, -4.37114e-08, -3.48787e-16, 3.48787e-16, 3.48787e-16, 1, 0, -0.0195801, 0)
shape = SubResource("CylinderShape3D_wch0k")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_0odae")
}
autoplay = "rotate"
[connection signal="body_entered" from="." to="." method="_on_body_entered"]