When an AFrame <scene>
gets loaded and a camera
component has been set with look-controls
enabled, how does the current orientation of the device (mobile) set the values of rotation and position of the camera?
Since a scene will have a certain point of origin. I have found that when open the scene from different positions the initial view is different, while I would like it to be the "look ahead" view.
The code is simple:
<a-entity camera="userHeight:1.6" look-controls></a-entity>
<iframe>
. Which ever direction I am facing, the origin is ahead of me (because the camera is set behind a few metres). That is as expected. Now, if I change my orientation (say turn left) and dynamically (via javascript) load a<a-scene>
, it keeps the original position of the origin and shows the new scene as though the camera has moved to the left. – RmR