When getting gyroscope data using the Tilt event, the Y value is always returning 0.0
Does anyone know what could be causing this?
This happened on both a Nexus 7 and a Tegra Note 7
When getting gyroscope data using the Tilt event, the Y value is always returning 0.0
Does anyone know what could be causing this?
This happened on both a Nexus 7 and a Tegra Note 7
This is actually intended behavior, Tilt works off of data from the accelerometer vector, not the Gyroscope. If you want directional data for things like camera control, it’s best to use Rotation Rate which is from the Gyro.
Hmm, Rotation Rate is also returning 0 on Y on my Device, a Xperia Play. The only one working is Gravity, but it returns values completely different from iOS…
I think this is a bug on some devices. I tried several android phones and they both read 0 on Y in both tilt and rotationrate. Im trying IOS devices now, leave a message here for me if u r interested in this.
Hi, the GetInputMotionState returns a null vector for me too, did you fix it?
Last I heard, if you’re dealing with Android, this is very device-specific whether it works, and which axes are mapped to which sensors and their axes.
I’m using Android, is there a way to make it work, or a different alternative?
Sorry I don’t know. I never solved the problem myself. I just heard people don’t have this problem on iPhones but they have it on come Android devices and not others.