There was an error while loading. Please reload this page.
Pointer()
track what use is pointing at
in VR, it creates a raycaster on their controller in 2D, it tracks the mouse location
See the live demo.
type
string
2D
3D
length
float
action
functions
// setup controller var controller = new XR.Gamepad(); // setup pointer new XR.Pointer({ type: '3D', length: 10, action: myFunction, bind: controller.right });