diff options
Diffstat (limited to 'character/fps_controller/fps_controller.tscn')
-rw-r--r-- | character/fps_controller/fps_controller.tscn | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/character/fps_controller/fps_controller.tscn b/character/fps_controller/fps_controller.tscn new file mode 100644 index 0000000..c0009d5 --- /dev/null +++ b/character/fps_controller/fps_controller.tscn @@ -0,0 +1,20 @@ +[gd_scene load_steps=3 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 + +[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, 0.796127, 0 ) + +[node name="RayCast" type="RayCast" parent="Camera"] +cast_to = Vector3( 0, 0, -3 ) +collision_mask = 2 |