- Home /
Accelerometer - accounting for gravity for arbitrary device angle
How do you subtract gravity from accelerometer results, for the device being moved at anytime to an arbitrary angle?
Comment
Answer by rawatenator · Apr 22, 2012 at 03:36 AM
Not completely sure, but I think you are supposed to look at the gyroscope and subtract gyroscope.gravity. I'm working ont he same problem right now.
Your answer
![](https://koobas.hobune.stream/wayback/20220613062435im_/https://answers.unity.com/themes/thub/images/avi.jpg)