The VR config panel was extending 55cm below the handle bar due to incorrect positioning calculation. Problem: - Panel dimensions: 2m wide × 1.5m tall - Panel was positioned at y=0.2m above handle center - This placed panel bottom at y=-0.55m (55cm BELOW handle) - Panel overflowed significantly below the handle bar Solution: - Calculate proper position based on panel height - Position panel center at y=0.8m (0.75m half-height + 0.05m gap) - Panel bottom now sits 5cm above handle, matching toolbox appearance - Add 0.6x scaling to match toolbox compact size (1.2m×0.9m actual) Result: - Panel bottom aligns just above handle bar - Consistent visual relationship with toolbox - Comfortable viewing distance and ergonomics in VR 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
675 B
TypeScript
26 lines
675 B
TypeScript
import {Quaternion, Vector3} from "@babylonjs/core";
|
|
|
|
export type LabelRenderingMode = 'fixed' | 'billboard' | 'dynamic' | 'distance';
|
|
|
|
export type MenuConfig = {
|
|
position: Vector3,
|
|
quarternion: Quaternion,
|
|
scale: Vector3
|
|
}
|
|
export type AppConfigType = {
|
|
id?: number,
|
|
currentDiagramId?: string,
|
|
locationSnap?: number,
|
|
rotateSnap?: number,
|
|
createSnap?: number,
|
|
turnSnap?: number,
|
|
physicsEnabled?: boolean,
|
|
newRelicKey?: string,
|
|
newRelicAccount?: string,
|
|
passphrase?: string,
|
|
flyMode?: boolean,
|
|
labelRenderingMode?: LabelRenderingMode,
|
|
toolbox?: MenuConfig,
|
|
configMenu?: MenuConfig,
|
|
keyboard?: MenuConfig
|
|
} |