You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, I would like to do the same example as in this clip https://www.youtube.com/watch?v=biCKHVefIe8 @nickw1@kalwalt Can you please see this
I would like to set the distanceMsg attribute in the a-text value, so that it is always visible, and a-text as a child element of a-image, so that the distance is always below. Aframe has special rules for child elements so I'm wondering how I could do this in JS?
<scripttype="text/javascript">
window.addEventListener('load', () =>{document.querySelector('[gps-entity-place]').addEventListener('gps-entity-place-update-position',(payload)=>{letv=parseInt(payload.detail.distance);alert(`${v} meter`);// you may show the distance in the value of <a-text>// document.getElementById("id-of-a-text").setAttribute('value', `${v} meter`);});})
</script>
Hello everyone, I would like to do the same example as in this clip https://www.youtube.com/watch?v=biCKHVefIe8
@nickw1 @kalwalt Can you please see this
I would like to set the distanceMsg attribute in the a-text value, so that it is always visible, and a-text as a child element of a-image, so that the distance is always below. Aframe has special rules for child elements so I'm wondering how I could do this in JS?
This is my code but dont work
const model = document.createElement('a-image'); model.setAttribute('gps-entity-place',
latitude: ${latitude}; longitude: ${longitude}`);model.setAttribute('name', name2);
model.setAttribute('src', logo);
model.setAttribute('width', wdt);
model.setAttribute('height', hg);
model.setAttribute('look-at', '[gps-camera]');
});
`
The text was updated successfully, but these errors were encountered: