The PositionSensorVRDevice interface of the WebVR API represents
hardware's position sensor. You can access information such as
current position and orientation of the sensor in relation to
head mounted display through the PositionSensorVRDevice.getState()
The PositionSensorVRDevice interface of the WebVR API represents hardware's position sensor. You can access information such as current position and orientation of the sensor in relation to head mounted display through the `PositionSensorVRDevice.getState()`
(device-id this)
Property.
Returns the ID for this specific VRDevice. The ID shouldn’t change browser restarts, allowing configuration data to be saved based it.
Property. Returns the ID for this specific VRDevice. The ID shouldn’t change browser restarts, allowing configuration data to be saved based it.
(device-name this)
Property.
A human-readable name to identify the VRDevice.
Property. A human-readable name to identify the VRDevice.
(get-immediate-state this)
Method.
[Experimental] [Obsolute]
The getImmediateState() method of the VRDevice
interface returns
current instantaneous position sensor state. This is intended
only be used rarely, for certain special uses, for example sampling
immediate position of a hand orientation sensor — or at least
will be, in the future.
var myPositionstate = PositionSensorVRDevice.getImmediateState();
See also: https://developer.mozilla.org/en-US/docs/Web/API/PositionSensorVRDevice/getImmediateState
Method. [Experimental] [Obsolute] The getImmediateState() method of the `VRDevice` interface returns current instantaneous position sensor state. This is intended only be used rarely, for certain special uses, for example sampling immediate position of a hand orientation sensor — or at least will be, in the future. `var myPositionstate = PositionSensorVRDevice.getImmediateState();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PositionSensorVRDevice/getImmediateState`
(get-state this)
Method.
[Experimental] [Obsolute]
The getState() method of the web.vr.PositionSensorVRDevice
returns the current state of the position sensor for the current
(e.g. within the current window.requestAnimationFrame
callback)
for the previous frame, contained with a VRPositionState
object.
is the method you'd normally want to use, vs. PositionSensorVRDevice.getImmediateState
.
var myPositionState = PositionSensorVRDevice.getState();
See also: https://developer.mozilla.org/en-US/docs/Web/API/PositionSensorVRDevice/getState
Method. [Experimental] [Obsolute] The getState() method of the `web.vr.PositionSensorVRDevice` returns the current state of the position sensor for the current (e.g. within the current `window.requestAnimationFrame` callback) for the previous frame, contained with a `VRPositionState` object. is the method you'd normally want to use, vs. `PositionSensorVRDevice.getImmediateState`. `var myPositionState = PositionSensorVRDevice.getState();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PositionSensorVRDevice/getState`
(hardware-unit-id this)
Property.
Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
Property. Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
(reset-sensor this)
Method.
[Experimental] [Obsolute]
The resetSensor() method of the VRDevice
interface can be used
reset the sensor if desired, returning the position and orientation
to zero.
PositionSensorVRDevice.resetSensor();
See also: https://developer.mozilla.org/en-US/docs/Web/API/PositionSensorVRDevice/resetSensor
Method. [Experimental] [Obsolute] The resetSensor() method of the `VRDevice` interface can be used reset the sensor if desired, returning the position and orientation to zero. `PositionSensorVRDevice.resetSensor();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PositionSensorVRDevice/resetSensor`
(set-device-id! this val)
Property.
Returns the ID for this specific VRDevice. The ID shouldn’t change browser restarts, allowing configuration data to be saved based it.
Property. Returns the ID for this specific VRDevice. The ID shouldn’t change browser restarts, allowing configuration data to be saved based it.
(set-device-name! this val)
Property.
A human-readable name to identify the VRDevice.
Property. A human-readable name to identify the VRDevice.
(set-hardware-unit-id! this val)
Property.
Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
Property. Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close