-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWorld.tscn
91 lines (69 loc) · 2.9 KB
/
World.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
[gd_scene load_steps=11 format=2]
[ext_resource path="res://TurretBase.gd" type="Script" id=1]
[ext_resource path="res://Target.gd" type="Script" id=2]
[sub_resource type="CubeMesh" id=1]
[sub_resource type="SpatialMaterial" id=2]
albedo_color = Color( 0, 0.0862745, 1, 1 )
[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 0, 1, 0.0627451, 1 )
[sub_resource type="CubeMesh" id=4]
[sub_resource type="SpatialMaterial" id=5]
albedo_color = Color( 1, 0, 0, 1 )
[sub_resource type="PlaneMesh" id=6]
[sub_resource type="SpatialMaterial" id=7]
albedo_color = Color( 0.415686, 0.415686, 0.415686, 1 )
[sub_resource type="Animation" id=8]
resource_name = "spin"
length = 20.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".: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, 20 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 360, 0 ) ]
}
[node name="World" type="Spatial"]
[node name="TurretBase" type="Spatial" parent="."]
script = ExtResource( 1 )
target_path = NodePath("../Target")
[node name="Timer" type="Timer" parent="TurretBase"]
autostart = true
[node name="MeshInstance" type="MeshInstance" parent="TurretBase"]
mesh = SubResource( 1 )
material/0 = SubResource( 2 )
[node name="MeshInstance2" type="MeshInstance" parent="TurretBase"]
transform = Transform( 0.36754, 0, 0, 0, 0.619808, 0, 0, 0, 1, 0, 0, -1.77373 )
mesh = SubResource( 1 )
material/0 = SubResource( 3 )
[node name="Target" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -27, -6, -49 )
script = ExtResource( 2 )
[node name="MeshInstance" type="MeshInstance" parent="Target"]
mesh = SubResource( 4 )
material/0 = SubResource( 5 )
[node name="Timer" type="Timer" parent="Target"]
wait_time = 10.0
autostart = true
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 58.1072, 0, 0, 0, 1, 0, 0, 0, 58.1072, 0, -13.4047, -41.1428 )
mesh = SubResource( 6 )
material/0 = SubResource( 7 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 0.944135, -0.235106, 0.230942, 0, 0.70076, 0.713397, -0.329559, -0.673543, 0.661612, 0, 42, 0 )
shadow_enabled = true
[node name="CamBase" type="Spatial" parent="."]
transform = Transform( 0.0237576, 0, -0.999718, 0, 1, 0, 0.999718, 0, 0.0237576, 0, 0, -52.4955 )
[node name="Camera" type="Camera" parent="CamBase"]
transform = Transform( -1, 4.5013e-08, -7.49438e-08, 0, 0.857257, 0.514889, 8.74228e-08, 0.514889, -0.857257, -2.8156, 34.8687, -67.4178 )
far = 10000.0
[node name="AnimationPlayer" type="AnimationPlayer" parent="CamBase"]
autoplay = "spin"
anims/spin = SubResource( 8 )
[connection signal="timeout" from="TurretBase/Timer" to="TurretBase" method="fire"]
[connection signal="timeout" from="Target/Timer" to="Target" method="toggle_velocity"]