-
Notifications
You must be signed in to change notification settings - Fork 1
Compass
Josh Stovall edited this page Dec 19, 2020
·
2 revisions
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();
Name | Type | Default | Description |
---|---|---|---|
range |
array |
0 to 1
|
range |