immersive2/src/diagram
Michael Mainguy 0ad61bdde9 Fix XR component positioning to appear in front of user
- Use camera.getDirection() instead of manual Euler angle calculation to properly account for camera transform hierarchy
- Negate forward offsets to position objects in -Z direction (user faces -Z by design)
- Replace expensive HighlightLayer hover effect with lightweight EdgesRenderer (20-50x faster)
- Add comprehensive debug logging for position calculations

The camera has a parent transform with 180° Y rotation, causing the user to face -Z in world space. Components now correctly position in front of the user when entering XR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-12 22:41:51 -06:00
..
functions Fix XR component positioning to appear in front of user 2025-11-12 22:41:51 -06:00
types Added webxr exit button 2025-02-14 11:01:27 -06:00
diagramManager.ts Added webxr exit button 2025-02-14 11:01:27 -06:00
diagramMenuManager.ts Added webxr exit button 2025-02-14 11:01:27 -06:00
diagramObject.ts Optimize connection raycasting with position caching 2025-11-12 21:46:57 -06:00