|
Some checks failed
Build / build (push) Failing after 34s
Changed status screen from manual position updates to automatic camera-following using parent-child relationship. **Modified: src/statusScreen.ts** - Removed Observer import (no longer needed) - Removed _updateObserver property - Modified initialize() method: - Parent _screenMesh to camera for automatic following - Set position to (0, 0, 2) in local space (2 meters forward) - Commented out rotation.y = Math.PI (not needed with proper texture orientation) - Set renderingGroupId to 3 for always-on-top rendering - Simplified show() method: - Removed manual position/lookAt/rotate calculations - Just enable mesh and update statistics - Parenting handles all positioning automatically - hide() method unchanged (already simple) Benefits: - Zero per-frame overhead (no render loop needed) - Screen automatically follows camera movement in VR - Matches existing architecture (scoreboard, sight use same pattern) - Works in both desktop and VR - Simpler, more maintainable code The screen now properly follows the user's head movement and stays 2 meters in front of the camera at all times. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .github/workflows | ||
| docs | ||
| public | ||
| scripts | ||
| server | ||
| src | ||
| themes/default | ||
| .gitignore | ||
| CLAUDE.md | ||
| CONTROLLER_THRUST.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| styles.css | ||
| tsconfig.json | ||
| vite.config.ts | ||