fix: scoping

This commit is contained in:
DottsGit
2026-06-06 02:03:05 -04:00
parent a47d01632d
commit 27460be0ea
5 changed files with 66 additions and 5 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ func _ready() -> void:
func _input(event: InputEvent) -> void:
if event is InputEventMouseMotion and Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED:
var sens = SettingsManager.mouse_sensitivity
var is_ads = camera and camera.fov < params.base_fov - 5.0
var sens = SettingsManager.ads_sensitivity if is_ads else SettingsManager.mouse_sensitivity
# Yaw: rotate the player (parent)
get_parent().rotate_y(-event.relative.x * sens)
# Pitch: rotate this pivot