fix: adjust Room Focus camera to be more top-down
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run

This commit is contained in:
fullsizemalt 2025-12-19 10:31:08 -08:00
parent 6a398a2016
commit 370d60e7f2

View file

@ -41,13 +41,12 @@ const getPresetConfig = (
};
case 'ROOM_FOCUS':
// Focus on a specific room/area - isometric view centered on target
// Focus on a specific room/area - more top-down view centered on target
const fx = focusTarget?.x ?? centerX;
const fz = focusTarget?.z ?? centerZ;
// Position camera at 45° angle from target, closer in for room view
const roomViewDist = 25; // Closer than full-floor isometric
// Position camera mostly above with slight offset for depth perception
return {
position: [fx + roomViewDist * 0.7, roomViewDist * 0.5, fz + roomViewDist * 0.7] as [number, number, number],
position: [fx + 8, 20, fz + 8] as [number, number, number],
target: [fx, 0, fz] as [number, number, number],
};