googlevr / cardboard

Open source Cardboard SDK and samples
Other
1.49k stars 256 forks source link

Getting head rotation on IOS #155

Closed whizzkid closed 3 years ago

whizzkid commented 4 years ago

using unity 2019.4.14f1 I'm trying to get a menu to be consistently displayed at the players feet, facing the same way as the player, by rotating the menu to the same y angle.

This works fine in editor (windows and mac) and on android, but on IOS when I try to display the the camera's rotation from script (or any of its parents) is always 0,0,0 while the stereo view and headtracking seem to work normally.

using the xr interaction toolkit I also added an XRcontroller to the camera and use that to interact with stuff. that also doesnt work on ios.

so something is working differently on ios than anywhere else...

how do i get the head's rotation consistently on all devices? is it on another object or something?

jballoffet commented 3 years ago

In order to allow us to reproduce this issue, could you please provide a link to a simple Unity project where this issue is shown? Please also provide:

whizzkid commented 3 years ago

This can be closed. while building the testproject to reproduce the problem, the rotation IS working normally. something is weird in my app.

jballoffet commented 3 years ago

Thanks for the update.