getState()method of the
PositionSensorVRDeviceinterface returns the current state of the position sensor for the current frame (e.g. within the current
window.requestAnimationFramecallback) or for the previous frame, contained with a
VRPositionStateobject. This is the method you'd normally want to use, versus
resetSensor()method of the
VRDeviceinterface can be used to reset the sensor if desired, returning the position and orientation values to zero.
hardwareUnitIdread-only property of the
VRDeviceinterface returns the distinct hardware ID for the overall hardware unit that this
VRDeviceis a part of. All devices that are part of the same physical piece of hardware will have the same
maximumFieldOfViewread-only property of the
VREyeParametersinterface describes the maximum supported field of view for the current eye.
minimumFieldOfViewread-only property of the
VREyeParametersinterface describes the minimum supported field of view for the current eye.
recommendedFieldOfViewread-only property of the
VREyeParametersinterface describes the recommended field of view for the current eye — ideally based on user calibration.
renderRectread-only property of the
VREyeParametersinterface specifies the viewport of a canvas into which visuals for the current eye should be rendered.