-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Bullet.tscn
35 lines (26 loc) · 931 Bytes
/
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
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Bullet.gd" type="Script" id=1]
[sub_resource type="SpatialMaterial" id=1]
flags_transparent = true
flags_unshaded = true
flags_do_not_receive_shadows = true
albedo_color = Color( 0.160784, 1.81961, 0.141176, 1 )
[sub_resource type="CapsuleMesh" id=2]
material = SubResource( 1 )
radius = 0.3
mid_height = 1.1
[sub_resource type="CapsuleShape" id=3]
radius = 0.05
[node name="Bullet" type="Area"]
script = ExtResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="."]
mesh = SubResource( 2 )
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 3 )
[node name="Timer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
autostart = true
[connection signal="body_entered" from="." to="." method="_on_Bullet_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]