how to turn the game view by turn a Android phone?which SDK can i use?

Hello all,
this is my first post. im trying to make a VR game on Android phone.no helmet, no controller, just a Android phone app. player can turn the view by turn their phone, and walk by a virtual lever in the screen. i have already solve the walk part by joystick. i tried to achieve the turn part by GoogleVR SDK, i can turn the view in unity, but it doesnt work when i install it on phone. then i got the information that unity doesnt support GoogleVR since unity2019.3, and my version of unity is 2020 and im not sure is this the reason. how can i achieve this turn function? Can anyone help me? very appreciate it! (´▽`ʃ♡ƪ)

Hi,

The phone must have a gyro for it to work.
And you can’t move the vr camera itself. Put the camera in a parent game object and move that instead.

You can read the world angles from the camera to get the direction of what the player are looking at, and move it in that direction. The local angles can tell how the player is leaning the head, forward, backwards, for use as input for that motion.

Use the open source Cardboard SDK for Unity 2020:

1 Like

Hey @sunonsun ! So, Google Cardboard is no longer directly supported by Unity. If you have any issues related to Google’s latest Cardboard XR plugin for Unity, the Google team has requested you open issues on Github here where their team will address: Issues · googlevr/cardboard · GitHub

1 Like