diff options
Diffstat (limited to 'character/fps_controller/fps_controller.tscn')
-rw-r--r-- | character/fps_controller/fps_controller.tscn | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/character/fps_controller/fps_controller.tscn b/character/fps_controller/fps_controller.tscn index c176a39..d1bf6be 100644 --- a/character/fps_controller/fps_controller.tscn +++ b/character/fps_controller/fps_controller.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=4 format=2] [ext_resource path="res://character/fps_controller/fps_controller.gd" type="Script" id=1] @@ -6,6 +6,9 @@ radius = 0.3 height = 2.0 +[sub_resource type="CapsuleShape" id=2] +radius = 0.374691 + [node name="fps_controller" type="KinematicBody"] script = ExtResource( 1 ) @@ -20,3 +23,12 @@ 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.58521 ) +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"] |