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 ON_VR_VIEWING_DIRECTION_CHANGE events.
Gets the number of degrees that the viewport can change before the ON_VR_VIEWING_DIRECTION_CHANGE 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.
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 ON_VR_VIEWING_DIRECTION_CHANGE events. The default value is 250ms.
The minimal interval between consecutive ON_VR_VIEWING_DIRECTION_CHANGE events.
Sets the number of degrees that the viewport can change before the ON_VR_VIEWING_DIRECTION_CHANGE event is triggered. The default value is 5°.
The threshold in degrees that the viewport can change before the ON_VR_VIEWING_DIRECTION_CHANGE event is triggered.
Applies a zoom factor to the current field of view.
The zoom factor to apply.
Generated using TypeDoc
Disables the gyroscope (also on VRHMDs).