From 6bc199f6c1b6e7d90254314448c695dc5385c186 Mon Sep 17 00:00:00 2001 From: Steven Wroblewski Date: Fri, 17 Apr 2026 13:26:03 +0200 Subject: [PATCH] fix(core): correct camera Y offset in RoomNavigator floor navigation Floor N spans from N*-720 to (N-1)*-720. The camera must center at the floor midpoint, so target_y = floor_index * -720 + 360 (half floor height). Previous formula placed the camera at the floor boundary, showing content split between two floors. Co-Authored-By: Claude Sonnet 4.6 --- scripts/systems/room_navigator.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/systems/room_navigator.gd b/scripts/systems/room_navigator.gd index b416b73..a05384b 100644 --- a/scripts/systems/room_navigator.gd +++ b/scripts/systems/room_navigator.gd @@ -18,7 +18,7 @@ func go_to_floor(floor_index: int) -> void: if _camera == null or floor_index == _current_floor: return _current_floor = floor_index - var target_y: float = floor_index * -FLOOR_HEIGHT + var target_y: float = floor_index * -FLOOR_HEIGHT + FLOOR_HEIGHT * 0.5 var tween: Tween = create_tween() tween.set_ease(Tween.EASE_IN_OUT) tween.set_trans(Tween.TRANS_SINE)