From adc7138a8bbabcc5a1dfbdda002729f63319fd13 Mon Sep 17 00:00:00 2001 From: teatov Date: Mon, 29 Sep 2025 15:06:59 +1000 Subject: [PATCH] make camera rotate listener --- scenes/main_camera.tscn | 1 + scripts/camera/main_camera.gd | 1 + 2 files changed, 2 insertions(+) diff --git a/scenes/main_camera.tscn b/scenes/main_camera.tscn index b578c81..04c97b5 100644 --- a/scenes/main_camera.tscn +++ b/scenes/main_camera.tscn @@ -11,3 +11,4 @@ _angle_degrees = Vector3(-50, -45, 0) [node name="AudioListener3D" type="AudioListener3D" parent="."] top_level = true +current = true diff --git a/scripts/camera/main_camera.gd b/scripts/camera/main_camera.gd index ad2caed..523dd18 100644 --- a/scripts/camera/main_camera.gd +++ b/scripts/camera/main_camera.gd @@ -58,6 +58,7 @@ func _process_following(delta: float) -> void: global_position = follow_position + transform.basis.z * _distance _listener.global_position = follow_position + _listener.global_rotation = global_rotation func _connect_player_signals(player: Player) -> void: