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