1
0

Hand tracking
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
Aiden
2026-06-10 14:54:56 +10:00
parent c1fbfd3b5e
commit ba3c2785d8
6 changed files with 436 additions and 32 deletions

View File

@@ -273,6 +273,10 @@ function hidePanel() {
vrPanelVisibility.hide();
}
function getVisibleVrPanelInteractables() {
return vrPanelVisibility.isVisible ? (vrPanel?.interactables ?? []) : [];
}
function onWindowResize() {
if (!renderer) return;
@@ -563,7 +567,10 @@ function renderXR(timestamp, frame) {
if (vrPanelVisibility.isFading) {
animatePanelFade(timestamp);
}
xrInputRig?.update(timestamp);
const isInputHoveringVrPanel = xrInputRig?.update(timestamp, getVisibleVrPanelInteractables()) ?? false;
if (isInputHoveringVrPanel) {
vrPanelVisibility.show();
}
if (!frame) {
console.warn("renderXR called without an XRFrame. Skipping render.");