From b458cba1a1eac505afbd638f0794795e984714e5 Mon Sep 17 00:00:00 2001 From: Zakarya Date: Mon, 15 Jul 2024 15:10:20 -0700 Subject: [PATCH] Rename handle_rotation to handle_head_rotation --- addons/fpc/character.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/fpc/character.gd b/addons/fpc/character.gd index 84ac954..38b6b6a 100644 --- a/addons/fpc/character.gd +++ b/addons/fpc/character.gd @@ -160,7 +160,7 @@ func _physics_process(delta): input_dir = Input.get_vector(LEFT, RIGHT, FORWARD, BACKWARD) handle_movement(delta, input_dir) - handle_rotation() + handle_head_rotation() # The player is not able to stand up if the ceiling is too low low_ceiling = $CrouchCeilingDetection.is_colliding() @@ -218,7 +218,7 @@ func handle_movement(delta, input_dir): velocity.x = direction.x * speed velocity.z = direction.z * speed -func handle_rotation(): +func handle_head_rotation(): HEAD.rotation_degrees.y -= mouseInput.x * mouse_sensitivity HEAD.rotation_degrees.x -= mouseInput.y * mouse_sensitivity mouseInput = Vector2(0,0)