True, if a permission is required, false otherwise.
Disables the gyroscope (also on VRHMDs).
Disables the keyboard controls.
Disables the mouse controls.
Enables the gyroscope (also on VRHMDs).
Enables the keyboard controls.
Enables the mouse controls.
Gets the horizontal field of view in degrees.
Returns the last recorded error or null, if no error occurred.
Returns the current state of the VR handler or null, if the VR handler is not yet initialized.
Returns true, if stereo is enabled, false otherwise.
Gets the vertical field of view in degrees.
Returns the current viewing direction, if the VRHandler is in the playing state.
Gets the minimal interval between consecutive VRViewingDirectionChange events.
Gets the number of degrees that the viewport can change before the VRViewingDirectionChange event is triggered.
Returns the current zoom factor.
Returns true, if the gyroscope is enabled, false otherwise.
Returns true, if keyboard controls are enabled, false otherwise.
Returns true, if mouse controls are enabled, false otherwise.
Moves the current VR viewing direction in the given direction with the given speed. The speed is determined by the length of the direction vector in degrees / second. The movement will be continued for 110ms, after that period the movement will be dampened and fade out. To sustain a smooth viewport movement, no more than 100ms must pass between consecutive calls to this function.
A three-component vector describing the direction and speed in which the viewing direction shall be moved.
Requests the permission needed to access device orientation data, if required.
A promise that resolves when the required permissions have been acquired.
Sets the horizontal field of view in degrees.
The horizontal field of view in degrees.
Enables or disables stereo mode for VR content.
If true, stereo mode will be enabled.
Sets the vertical field of view in degrees.
The vertical field of view in degrees.
Sets the given viewing direction, if the VRHandler is in the playing state.
The viewing direction to set.
Sets the minimal interval between consecutive VRViewingDirectionChange events. The default value is 250ms.
The minimal interval between consecutive VRViewingDirectionChange events.
Sets the number of degrees that the viewport can change before the VRViewingDirectionChange event is triggered. The default value is 5°.
The threshold in degrees that the viewport can change before the VRViewingDirectionChange event is triggered.
Applies a zoom factor to the current field of view.
The zoom factor to apply.
Returns true, if a permission is required to access device orientation data.