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).