I tried a lot of things, but I can not find the problem. In that case, the gyroscope is enabled, but I can not get the readings from the gyroscope: the quaternion value of is always (0,0,0,0). I can obtain the quaternions from the device and the camera rotates accordingly.īut the problem arises when I build the apk and then test it on my android device (Sony Xperia Z1). After reading the documentation and some trials, I have written a script, attached to the camera, and it works pretty well when I enter play mode in my android device through Unity Remote 4. I'm trying to have a camera wich rotates under control of the device gyroscope.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |