There was an error while loading. Please reload this page.
Compass()
Uses phone magnetometer as a compass. See the live demo.
tracks orientation of the device as compared to the Earth coordinate frame
see DeviceOrientationEvent and Orientation and motion data explained
var compass = new XR.Compass();
range
array
0
1