How do a place the camera first position

拟墨画扇 提交于 2019-12-12 04:12:30

问题


I am searching . I can a set the first position of my camera in A-Frame. I am looking for how to set the first view of the camera.


回答1:


If by "view" you mean the angle the camera is pointed, you can do this by setting the rotation attribute on the parent of the <a-camera> entity. Example:

<a-entity position="0 0 5" rotation="0 90 0"> <a-camera></a-camera> </a-entity>

By rotating 90 degrees on the y-axis, the camera is pointed to the left of the scene (0 degrees would be facing front).



来源:https://stackoverflow.com/questions/40812824/how-do-a-place-the-camera-first-position

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!