Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

How do I access CoreMotion and the Android equivalent?

$
0
0
Hi, all– I'm trying to get access to the iOS's CMDeviceMotion in order to get a more accurate gyroscope reading into Unity. Unity's Input.gyro works, but it doesn't account for the slow drift of the gyroscope over time. I believe CMDeviceMotion does (by incorporating data from the accelerometer (and maybe magnetometer?) ). Unfortunately, this is critical in our project. Is there a way of accessing this part of the iOS SDK in unity? There was a request a while ago: http://feedback.unity3d.com/suggestions/coremotion-gyroscope-interface, but I don't know if it has been included since. Does anyone know if any of these plugins have that functionality, by any chance? https://www.assetstore.unity3d.com/en/#!/search/iOS%20sdk We're attempting to make it compatible with Android, too, so an android equivalent would help as well. Thank you! : jesse ps. we're looking into other solutions to account for drift as well, using a complementary filter with gyro and accelerometer data, but with no success so far. Any help would be beneficial.

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>