GO-V.ORG
As seen in

Search e01

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

3 results across 6 corpora for PositionSensorVRDevice: getState() method.

Developer library 3

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: 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

JSON results · Services directory