Is there a way to set the default camera direction when a page loads, in a-frame?
09:08 14 May 2020

By default, when I load a scene, the camera is pointing straight ahead. But I would like it to be pointing slightly upwards.

I tried using the rotation attribute to tilt the camera. At first instance, it works. But when I move the camera back down (to what would be its default position), and try to move to the side then, the camera moves in a strange angle. Not like it would if I loaded the scene with no camera rotation, moved up, and moved back again.

I am using the 1.0.4 version of a-frame, on a desktop, in Firefox, controling the scene with the mouse.

Here is my code:





  
    
  

  
  
  
  
  

camera rotation aframe