aframe Camera a-camera primitive


Example

The camera primitive determines what the user sees. We can change the viewport by modifying the camera entity’s position and rotation.

Note that by default, the camera origin will be at 0 1.6 0 in desktop mode and 0 0 0 in VR mode. Read about the camera.userHeight property.

<a-scene>
  <a-box></a-box>
  <a-camera></a-camera>
</a-scene>