- Home /
How do I access CoreMotion and the Android equivalent?
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220613200614im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Sensor Fusion of Accelerometer and Gyroscope 0 Answers
Pedometer for ios 1 Answer
Why is the Gyroscope inverted? 0 Answers
Gyroscope smooth transitions (minimizing jerk from tiny movements) 1 Answer