![](/img/trans.png)
[英]I have 5 images inside a div, and how can i move the position of a clicked image so that it moves to become the very first image inside the div?
[英]How do I attach an image to the reference frame in argon so that it moves with the camera wherever the user moves the phone to
如何将图像附加到氩气中的参考系,以便它根据用户将手机指向的任何位置与相机一起移动? 基本上,我希望它像 HUD 一样,在我的情况下,它只是我在 photoshop 中设计的静止图像,我想像地图键一样工作。
我已经根据一些 A-Frame 文档尝试了以下操作,但它似乎不起作用。 它似乎根本没有改变应用程序。 我把它放在我的 ar-scene 中。
<ar-camera>
<a-entity>
<a-image src="#imgKey" width="4" height="2" scale="1 1 1" position="0 0 0">
</a-image>
</a-entity>
</ar-camera>
有任何想法吗?
这是有效的代码。 简单地把它放在 ar-scene 中。 这是一个定位问题:
<a-entity position="0 0 5">
<ar-camera>
<a-image src="#imgKey" width="4" height="2" scale="1 1 1" position="0 0 -5"></a-image>
</ar-camera>
</a-entity>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.