-
Notifications
You must be signed in to change notification settings - Fork 1
/
Bullet.tscn
36 lines (27 loc) · 1.11 KB
/
Bullet.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
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Bullet.gd" type="Script" id=1]
[sub_resource type="SpatialMaterial" id=1]
albedo_color = Color( 0.968627, 1, 0, 1 )
[sub_resource type="CapsuleMesh" id=2]
material = SubResource( 1 )
radius = 0.1
mid_height = 0.218
[sub_resource type="CapsuleShape" id=3]
radius = 0.18
height = 0.22
[node name="Bullet" type="Spatial"]
script = ExtResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0 )
mesh = SubResource( 2 )
material/0 = null
[node name="Area" type="Area" parent="."]
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0 )
[node name="CollisionShape" type="CollisionShape" parent="Area"]
shape = SubResource( 3 )
[node name="Timer" type="Timer" parent="."]
wait_time = 10.0
autostart = true
[connection signal="area_entered" from="Area" to="." method="_on_Area_area_entered"]
[connection signal="body_entered" from="Area" to="." method="_on_Area_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]