googlevr / gvr-android-sdk

Google VR SDK for Android
http://developers.google.com/vr/android/
Other
3.28k stars 1.28k forks source link

How can I reset yaw orientation? #636

Open animis93 opened 5 years ago

animis93 commented 5 years ago

I'm developing an app that plays 360 videos. Every time I start the activity that handles the 360 video, it always has a starting angle (yaw) different from the center of the video.

How can I reset the starting yaw orientation?

I saw in GvrApi this method:

public void recenterTracking ()

Recenters the head orientation (resets the yaw to zero, leaving pitch and roll unmodified).

How can I use it in video360 sample?