diff --git a/index.html b/index.html index b86d851..4ff6651 100644 --- a/index.html +++ b/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() } })