- Home /
Strange android gyrometer attitude angles
I would my device's Input.gyro.attitude.eulerAngle.z to be 0 when my device is neutral (in landscape and perpendicular to the floor with the home button on the left). However, in order for that to happen I currently need to tilt my device approximately 45 degrees.
When my device is in landscape and perpendicular to the floor I get the following values:
Input.gyro.attitude: x= 3428003428, y=0.1189629, z=0.1253325, w=-0.6925746
Input.gyro.attitude.eulerAngles: x=70.09518 y=268.4407 z=267.9167
My device is a Nexus 5
What happens if you hold your device at a different angle when you start your app?
You may need to recalibrate it. If its not in the options you can do this with a separate app.
It makes no difference, I checked. I'm using unity remote 4
Ah. I see. Do an actual build and check the values on the device that way, outputting them to OnGUI.
Don't rely on Unity Remote when things look wrong.
Answer by biellls · Oct 17, 2016 at 06:57 PM
@ryo0ka I don't have enough permissions to reply as comment, but if I recall correctly I just stopped using Unity remote like @meat5000 recommended and built it on my phone (Nexus 5) where it worked correctly.
nice.
you might want to convert meat5000's comment to an 'answer' then. (i think you can do that)
Your answer
Follow this Question
Related Questions
Android gyroscope 3 Answers
Input.gyro.attitude returns zero values when tested with Moto G 4th generation device 2 Answers
How to setup android build so that users without gyroscope do not see it in Play Store ? 1 Answer
I would like to know if with a unity free is possible to use gyroscope android? 1 Answer