How do a place the camera first position

2019-09-15 13:35发布

问题:

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



标签: aframe