0

I cant find any documentation on how to controll the Camera Rotation on A Frame ? I have a 360 image implementated as the element. The Image or i.g. the Camera should rotate as i just move the mouse over the screen - move mouse right -> move image right and so on.

Its no Problem to read out the position of the pointer but how can i set the camera to rotate by a specific Angle so that the 360 image will "rotate" for the user ?

Best regards

LISN
  • 43
  • 1
  • 3
  • How about rotating your 360 image element instead? – Chris Chen Mar 19 '19 at 10:49
  • I dont think that there is a way to rotate the sky, isnt it ? Also i didnt found antoher simple way to display a 360 iamge instead of settting it as reference to the sky element - maybe you can tell me more about how you would do this ? – LISN Mar 19 '19 at 11:36
  • Have you tried on your elements? this will work with any object including a-sky – Chris Chen Mar 19 '19 at 22:42

1 Answers1

0

You should rotate the relevant elements instead of the camera since it's not a good practice to rotate it.

Ref:

  1. How to change the rotation axis for an animated A-Frame object?

  2. https://github.com/aframevr/aframe/issues/2898

Chris Chen
  • 1,228
  • 9
  • 14