From 4fe7295555f595a7ba951d6fdd5c00d0f0ca9b04 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Wed, 15 May 2024 11:46:27 +0200 Subject: [PATCH] working with teleportation too --- index.html | 2 +- jxr-core.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 9cd3182..0334a01 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - + diff --git a/jxr-core.js b/jxr-core.js index d0254ce..e86d60a 100644 --- a/jxr-core.js +++ b/jxr-core.js @@ -170,9 +170,9 @@ AFRAME.registerComponent('pinchprimary', { // currently only 1 hand, the right o // see own trigger-box component. Could use dedicated threejs helpers instead. // https://github.com/Utopiah/aframe-triggerbox-component/blob/master/aframe-triggerbox-component.js#L66 // could make trigger zones visible as debug mode - let pos = event.detail.position - let parentPos = document.getElementById('rig').getAttribute('position') - pos.add( parentPos ) + //let pos = event.detail.position + //let parentPos = document.getElementById('rig').getAttribute('position') + //pos.add( parentPos ) //var closests = getClosestTargetElements( pos ) //if (closests && closests.length > 0) // avoiding self reference // setFeedbackHUD("close enough, could stack with "+ closests[1].el.getAttribute("value") )