|
|
|
@ -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") )
|
|
|
|
|