- Home /
Android - Input.gyro.attitude not working
Hello,
I can't seem to figure this one out. My application uses 'Input.gyro.attitude' to move the scene camera with the device's gyro.
This works fine with iOS, but I can't seem to get it to work for Android :-/
The first thing that came to mind was the 'AndroidManifest'. It appears that I actually have 6 of them, is that okay? (Each one for a different plugin).
In three of them, I've added the lines:
<uses-feature android:name="android.hardware.sensor.accelerometer" />
<uses-feature android:name="android.hardware.sensor.gyroscope" />
Here are the Manifests:
I assume that's where the issue lies, unless you guys have any other suggestions? Thanks.
Answer by PrLayton · Mar 05, 2016 at 04:12 PM
I had the save problem and i just found this: "apparently Input.Gyro is for iPhone only. When on android, use Input.acceleration and convert it to a Quaternion with Quaternion.LookRotation."