fix: adjust Room Focus camera to use smaller offsets for scaled coords
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:36:44 -08:00
parent 370d60e7f2
commit 7c44d5c367

View file

@ -44,9 +44,10 @@ const getPresetConfig = (
// 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 mostly above with slight offset for depth perception
// Position camera above room with small offset for 3D depth
// Rooms are at SCALED coords (0.1 scale), so use small offsets
return {
position: [fx + 8, 20, fz + 8] as [number, number, number],
position: [fx + 2, 8, fz + 2] as [number, number, number],
target: [fx, 0, fz] as [number, number, number],
};