MoveVRControls

MoveVRControls

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 MoveVRControls(position, controller)

Source:

Constructor

Parameters:
Name Type Description
position RelPosition

the position in the geometry of the observer

controller Group

the group representing the controller

Classes

MoveVRControls

Methods

onSelectEnd()

Source:

Event handler when the user stops selecting

onSelectStart()

Source:

Event handler when the user starts selecting

onSqueezeEnd()

Source:

Event handler when the user stops squeezing

onSqueezeStart()

Source:

Event handler when the user starts squeezing

update()

Source:
To Do:
  • Dispatch an event, when the position has sufficiently changed.

Function to update the position