Orientation Sensor
Limited availability
The AbsoluteOrientationSensor
and RelativeOrientationSensor
APIs describe the physical orientation of a device in three-dimensional space, either in relation to the Earth's coordinate system or in relation to the device's own orientation, respectively.
To learn more, see
AbsoluteOrientationSensor,
AbsoluteOrientationSensor: AbsoluteOrientationSensor() constructor,
OrientationSensor,
OrientationSensor: populateMatrix() method,
OrientationSensor: quaternion property,
RelativeOrientationSensor,
RelativeOrientationSensor: RelativeOrientationSensor() constructor at MDN.
Compatibility
- Chrome 67 Released on 2018-05-29
- Chrome Android 67 Released on 2018-05-31
- Edge 79 Released on 2020-01-15
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position