I am making a video player application for daydream and I want to reposition my content canvas in front of camera (wherever camera is looking), when user clicks (using daydream controller) while watching a 360 degree video. For this, I need to reposition and rotate canvas according to the rotation of camera.
To achieve this, I used following approach.
1. In the update method, I detected the click.
2. I determined the angle by which camera rotated (say alpha).
3. To rotate my canvas (which...
Reposition and rotation of canvas in Daydream
To achieve this, I used following approach.
1. In the update method, I detected the click.
2. I determined the angle by which camera rotated (say alpha).
3. To rotate my canvas (which...
Reposition and rotation of canvas in Daydream