new ResetVRControls(position, controller, alignFacing, snap, camera)



Name Type Default Description
position RelPosition

the position in the geometry of the observer

controller Group

the group representing the controller

alignFacing boolean false

option for updating the facing

  • if False, the facing of the position is reset to its default value (quaternion = 1).
  • if True, the facing is set up to that the camera is directed toward the negative z axis. in this case the camera should be passed to the constructor as an argument
snap boolean false

if alignFacing and snap are true, align the orientation to the "closest" relation around the y-axis

camera VRCamera

the camera (giving the position of the observer)