Based on the current XR session (is VR active or not), returns the active camera.
Returns Object3D
The active camera.
Methods
getForwardWorld
getForwardWorld(out): vec3
Parameters
out: vec3
Returns vec3
getPositionWorld
getPositionWorld(out?): vec3
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.
This component helps retrieve the camera position in VR and non-VR.