Class: XRControls

THREE. XRControls


new XRControls(scene, desktop, options)

Handles XR Input

Parameters:
Name Type Description
scene *

The scene the XR controls are in

desktop Computer

The desktop that the keyboard is connected to

options object
Properties
Name Type Argument Default Description
hideControllers object <optional>
false

Setting this true will hide controller models. Useful if a model is already implemented.

hideHands boolean <optional>
false

Setting this true will hide hand models. Useful if a model is already implemented.

leftClickButton number <optional>
0

The button index for left click. Default 0 (trigger button)

rightClickButton number <optional>
5

The button index for right click. Default 5 (front y/b button)