GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

5 results across 6 corpora for PositionSensorVRDevice.

Dictionary 0

Papers 0

Wikidata 0

Developer library 5

PositionSensorVRDevice

WebVR API The **`PositionSensorVRDevice`** interface of the [WebVR API](/docs/Web/API/WebVR_API) represents VR hardware's position sensor. You can access information such as the current position and orientation of the sensor in relation to the head mounted display through the PositionSensorVRDevice.getState() method. ## Instance properties _This interface doesn't define any properties of its own, but it does inher

PositionSensorVRDevice: resetSensor() method

WebVR API The **`resetSensor()`** method of the VRDisplay interface _can be used to reset the sensor if desired, returning the_ position and orientation values to zero. ## Syntax ```js-nolint resetSensor() ``` ### Parameters None. ### Return value None (undefined). ## Examples The following demo uses the WebVR API to update the view of a simple CanvasRenderingContext2D scene on each frame of a requestAnimati

PositionSensorVRDevice: getState() method

WebVR API The **`getState()`** method of the PositionSensorVRDevice interface returns the current state of the position sensor for the current frame (e.g., within the current window.requestAnimationFrame callback) or for the previous frame, contained with a VRPose object. This is the method you'd normally want to use, vs. PositionSensorVRDevice.getImmediateState. ## Syntax ```js-nolint getState() ``` ### Paramete

PositionSensorVRDevice: getImmediateState() method

mple sampling the immediate position of a hand orientation sensor — or at least it will be, in the future. For most standard uses, you'll probably want to use PositionSensorVRDevice.getState instead. ## Syntax ```js-nolint getImmediateState() ``` ### Parameters None. ### Return value A VRPose object. ## Examples The following demo uses the WebVR API to update the view of a simple CanvasRenderingContext2D sce

HMDVRDevice

ets the field of view for both eyes. ## Examples The following example, taken from the WebVR spec, finds the first available `HMDVRDevice` and its associated PositionSensorVRDevice, if it has one. ```js navigator.getVRDevices().then((devices) => { for (const device of devices) { if (device instanceof HMDVRDevice) { gHMD = device; break; } } if (gHMD) { for (const device of devices) {

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/HMDVRDevice

JSON results · Services directory