motion_sensors
motion_sensors copied to clipboard
motionSensors.orientation doesn't differentiate between pointing down or up
When using motionSensors.orientation
or motionSensors.absoluteOrientation
to get pitch
, the value is the same if I move the device down or up. Therefore you cannot differentiate from up and down.
Measurements on ios:
device pointing up: pitch = 0
device pointing a little bit up: pitch = 1
device pointing straight, pitch = 1.57
device pointing a little bit down: pitch = 1
device pointing down: pitch = 1
I just tried this on Android and it works fine, so this might just be an iOS issue.