fix: adjust Room Focus camera to be more top-down
This commit is contained in:
parent
6a398a2016
commit
370d60e7f2
1 changed files with 3 additions and 4 deletions
|
|
@ -41,13 +41,12 @@ const getPresetConfig = (
|
||||||
};
|
};
|
||||||
|
|
||||||
case 'ROOM_FOCUS':
|
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 fx = focusTarget?.x ?? centerX;
|
||||||
const fz = focusTarget?.z ?? centerZ;
|
const fz = focusTarget?.z ?? centerZ;
|
||||||
// Position camera at 45° angle from target, closer in for room view
|
// Position camera mostly above with slight offset for depth perception
|
||||||
const roomViewDist = 25; // Closer than full-floor isometric
|
|
||||||
return {
|
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],
|
target: [fx, 0, fz] as [number, number, number],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue