Liking cljdoc? Tell your friends :D

web.vr.PositionSensorVRDevice

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()`
raw docstring

device-idcljs

(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.
sourceraw docstring

device-namecljs

(device-name this)

Property.

A human-readable name to identify the VRDevice.

Property.

A human-readable name to identify the VRDevice.
sourceraw docstring

get-immediate-statecljs

(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`
sourceraw docstring

get-statecljs

(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`
sourceraw docstring

hardware-unit-idcljs

(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.
sourceraw docstring

reset-sensorcljs

(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`
sourceraw docstring

set-device-id!cljs

(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.
sourceraw docstring

set-device-name!cljs

(set-device-name! this val)

Property.

A human-readable name to identify the VRDevice.

Property.

A human-readable name to identify the VRDevice.
sourceraw docstring

set-hardware-unit-id!cljs

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close