LightVRControls

LightVRControls

Implements controls to fly in the geometry using the VR controllers.

  • The squeeze button is used to drag (and rotate) the scene.
  • The select button is used to move in the direction of the controller This is inspired from Three.js FlyControls

Constructor

new LightVRControls(controller, camera, light)

Source:

Constructor

Parameters:
Name Type Description
controller Group

the group representing the controller

camera VRCamera

the camera (giving the position of the observer)

light PointLight

the light attached to the controller.

Classes

LightVRControls

Methods

chase(webXRManager)

Source:
Parameters:
Name Type Description
webXRManager WebXRManager

the WebXRManager used by Three.js