From 85b2d76138598816140ab0b75e6424ae01f2e1f4 Mon Sep 17 00:00:00 2001 From: blujai831 Date: Tue, 1 Apr 2025 20:22:21 -0700 Subject: [PATCH] Increase analog look sensitivity. Fix analog look sensitivity going unused. --- vfx/gameplay_camera.gd | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/vfx/gameplay_camera.gd b/vfx/gameplay_camera.gd index 01c205d..4a4598a 100644 --- a/vfx/gameplay_camera.gd +++ b/vfx/gameplay_camera.gd @@ -18,7 +18,7 @@ class_name GameplayCamera extends Camera3D @export var zoom_speed: float = 4.0 @export var mouse_sensitivity: float = 0.03125 @export var mouse_wheel_sensitivity: float = 5.0 -@export var analog_sensitivity: float = 1.0 +@export var analog_sensitivity: float = 1.5 @export var analog_zoom_sensitivity: float = 1.0 var target_direction := Vector3.ZERO @@ -52,9 +52,15 @@ func _unhandled_input(event: InputEvent) -> void: func _handle_analog_input() -> void: if !player_control: return - look_impetus.x -= Input.get_axis(&'look_left', &'look_right') - look_impetus.y += Input.get_axis(&'look_down', &'look_up') - look_impetus.z += Input.get_axis(&'zoom_in', &'zoom_out') + look_impetus.x -= ( + Input.get_axis(&'look_left', &'look_right')*analog_sensitivity + ) + look_impetus.y += ( + Input.get_axis(&'look_down', &'look_up')*analog_sensitivity + ) + look_impetus.z += ( + Input.get_axis(&'zoom_in', &'zoom_out')*analog_sensitivity + ) func _respond_to_impetus(delta: float) -> void: if !target: return