summaryrefslogtreecommitdiffstats
path: root/character/fps_controller/fps_controller.tscn
blob: ba047b4a4d3eb3c1f6a8b24f12b23cfcfafd3e5d (plain) (blame)
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=4 format=2]

[ext_resource path="res://character/fps_controller/fps_controller.gd" type="Script" id=1]

[sub_resource type="CapsuleShape" id=1]
radius = 0.3
height = 2.0

[sub_resource type="CapsuleShape" id=2]
radius = 0.374691
height = 0.0688557

[node name="fps_controller" type="KinematicBody"]
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="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.30045, 0 )
far = 5000.0

[node name="RayCast" type="RayCast" parent="Camera"]
cast_to = Vector3( 0, 0, -3 )
collision_mask = 2

[node name="ladder_detector" type="Area" parent="."]

[node name="CollisionShape" type="CollisionShape" parent="ladder_detector"]
transform = Transform( 1, 0, 0, 0, -1, -8.74228e-08, 0, 8.74228e-08, -1, 0, 0.0169024, -0.28562 )
shape = SubResource( 2 )

[connection signal="body_entered" from="ladder_detector" to="." method="_on_ladder_detector_body_entered"]
[connection signal="body_exited" from="ladder_detector" to="." method="_on_ladder_detector_body_exited"]