简体   繁体   中英

Unity UnityEngine.VR.GetLocalRotation without VR enable

Is there a way to retrieve the head rotation without activating the VR ?

Thanks you very much

Ok, I finally managed to something terrible.

I download the Cardboard API 0.5 Then, I use a CardboardMain prefab, and set the Distortion correction to None I create after one update (yield return null) a new camera to replace to deactivated one from Cardboard API I can retrieve the gyroscope modification by following the Head from the CardboardMain prefab

Good luck, tell me if you find better !

Ps : I am using this for this app http://lightgunmouse.com/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM