working with teleportation too

pinch-to-menu
Fabien Benetou 7 months ago
parent 12364ed505
commit 4fe7295555
  1. 2
      index.html
  2. 6
      jxr-core.js

@ -7,7 +7,7 @@
<script src="dependencies/a-console.js"></script> <script src="dependencies/a-console.js"></script>
<script src='dependencies/aframe-troika-text.min.js'></script> <script src='dependencies/aframe-troika-text.min.js'></script>
<script src='dependencies/webdav.js'></script> <script src='dependencies/webdav.js'></script>
<script src='jxr-core.js?1234'></script> <script src='jxr-core.js?12345'></script>
<script src='jxr-postitnote.js?13235'></script> <script src='jxr-postitnote.js?13235'></script>
</head> </head>
<body> <body>

@ -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. // 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 // https://github.com/Utopiah/aframe-triggerbox-component/blob/master/aframe-triggerbox-component.js#L66
// could make trigger zones visible as debug mode // could make trigger zones visible as debug mode
let pos = event.detail.position //let pos = event.detail.position
let parentPos = document.getElementById('rig').getAttribute('position') //let parentPos = document.getElementById('rig').getAttribute('position')
pos.add( parentPos ) //pos.add( parentPos )
//var closests = getClosestTargetElements( pos ) //var closests = getClosestTargetElements( pos )
//if (closests && closests.length > 0) // avoiding self reference //if (closests && closests.length > 0) // avoiding self reference
// setFeedbackHUD("close enough, could stack with "+ closests[1].el.getAttribute("value") ) // setFeedbackHUD("close enough, could stack with "+ closests[1].el.getAttribute("value") )

Loading…
Cancel
Save