-
Notifications
You must be signed in to change notification settings - Fork 6
/
WallRunStarter.tscn
64 lines (48 loc) · 1.9 KB
/
WallRunStarter.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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://scripts/WallRun.gd" type="Script" id=1]
[sub_resource type="CapsuleShape" id=1]
radius = 0.5
height = 1.5
[sub_resource type="CapsuleMesh" id=2]
radius = 0.5
mid_height = 1.5
[sub_resource type="CubeMesh" id=3]
size = Vector3( 0.2, 0.2, 1 )
[sub_resource type="CapsuleShape" id=4]
radius = 0.6
height = 1.3
[node name="WallRun" type="KinematicBody"]
collision_layer = 2
script = ExtResource( 1 )
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
shape = SubResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
mesh = SubResource( 2 )
material/0 = null
[node name="Head" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
[node name="Camera" type="Camera" parent="Head"]
[node name="AimCast" type="RayCast" parent="Head/Camera"]
enabled = true
cast_to = Vector3( 0, 0, -1000 )
[node name="ColorRect" type="ColorRect" parent="Head/Camera"]
margin_left = 958.0
margin_top = 538.0
margin_right = 962.0
margin_bottom = 542.0
color = Color( 1, 0, 0, 1 )
[node name="Gun" type="MeshInstance" parent="Head"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.32, -0.326, -0.503 )
mesh = SubResource( 3 )
material/0 = null
[node name="Muzzle" type="Spatial" parent="Head/Gun"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.639238 )
[node name="Area" type="Area" parent="."]
collision_layer = 2
[node name="CollisionShape" type="CollisionShape" parent="Area"]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0 )
shape = SubResource( 4 )
[connection signal="body_entered" from="Area" to="." method="_on_Area_body_entered"]
[connection signal="body_exited" from="Area" to="." method="_on_Area_body_exited"]