working principle of showing anchors

visibile-scaffolding
Fabien Benetou 2 years ago
parent 9ea1d0a71c
commit a71be51ac5
  1. 11
      index.html

@ -2488,11 +2488,22 @@ function doublePinchToScale(){
}
}
function makeAnchorsVisibleOnTargets(){
targets.map( t => {
let controlSphere = document.createElement("a-sphere")
controlSphere.setAttribute("radius", 0.05)
controlSphere.setAttribute("color", "blue")
controlSphere.setAttribute("wireframe", "true")
t.appendChild( controlSphere )
}) // could provide a proxy to be able to monitor efficiently
}
// used for testing
AFRAME.registerComponent('startfunctions', {
init: function () {
doublePinchToScale()
emptyPinchToMove()
makeAnchorsVisibleOnTargets()
}
})

Loading…
Cancel
Save