Skip to content

Commit

Permalink
Rename handle_rotation to handle_head_rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakarya committed Jul 15, 2024
1 parent 4782f80 commit b458cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/fpc/character.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b458cba

Please sign in to comment.