CLASSES
TagsA - Z

WebVRFreeCamera

NodeCameraTargetCameraFreeCamera

Description

class WebVRFreeCamera extends FreeCamera

Constructor

new WebVRFreeCamera(name, position, scene, compensateDistortion, webVROptions)

Parameters

Name Type Description
name string
position Vector3
scene Scene
optional compensateDistortion boolean

Methods

attachControl(element, noPreventDefault) → void

Parameters

Name Type Description
element HTMLElement
optional noPreventDefault boolean

detachControl(element) → void

Parameters

Name Type Description
element HTMLElement

requestVRFullscreen(requestPointerlock) → void

Parameters

Name Type Description
requestPointerlock boolean

getTypeName() → string

resetToCurrentRotation() → void

setPositionOffset(newPosition) → void

The offset will be added to the WebVR pose, after scaling it (if set).

     * @param {[Vector3](/classes/2.5/Vector3)} [newPosition] an optional new position. if not provided, the current camera position will be used.

     * @memberOf [WebVRFreeCamera](/classes/2.5/WebVRFreeCamera)

Parameters

Name Type Description
optional newPosition Vector3