From a71be51ac500d4382865bb8d7fd17d46beacf45d Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Sun, 26 Mar 2023 14:23:47 +0200 Subject: [PATCH] working principle of showing anchors --- index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() } })