This component helps retrieve the camera position in VR and non-VR.

Hierarchy

  • Component
    • ActiveCamera

Properties

leftEye: Object3D
nonVrCamera: Object3D
rightEye: Object3D
TypeName: string = 'active-camera'

Accessors

  • get current(): Object3D
  • Based on the current XR session (is VR active or not), returns the active camera.

    Returns Object3D

    The active camera.

Methods

  • Depending on the current XR session (is VR active or not), returns the position of the active camera. For VR this is the average of the left and right eye.

    Parameters

    • out: vec3 = ...

    Returns vec3

    The world position of the active camera.