Creates a new WindowsMotionController from a gamepad
the gamepad that the controller should be created from
The type of controller (Eg. Windows mixed reality)
The default controller model for the controller
The device position in babylon space
The device rotation in babylon space
The scale factor of the device in babylon space
'left' or 'right', see https://w3c.github.io/gamepad/extensions.html#gamepadhand-enum
The mesh that is attached to the controller
Fired when the grip button on this controller is modified
Fired when the main button state has changed
Fired when the menu button on this controller is modified
Fired when the pad state has changed
Fired when controllers stick values have changed
Fired when the secondary button state has changed
Fired when the thumbstick button on this controller is modified
Fired when the touchpad button on this controller is modified
Fired when the touchpad values on this controller are modified
Fired when the trackpad on this controller is clicked
Fired when the trackpad on this controller is modified
Fired when the trigger on this controller is modified
Fired when the trigger state has changed
X and Y axis corrisponding to the controllers joystick
(Likely devicePosition should be used instead) The device position in its room space
The raw pose from the device
(Likely deviceRotationQuaternion should be used instead) The device rotation in its room space
The current x and y values of this controller's trackpad
The controller name prefix for this controller type
The base url used to load the left and right controller models
The name of the left controller model file
The name of the right controller model file
Name of the child mesh that can be used to cast a ray from the controller
Attaches a mesh to the controller
the mesh to be attached
Attaches the controllers mesh to a camera
the camera the mesh should be attached to
Disposes of the controller
Gets the ray of the controller in the direction the controller is pointing
the length the resulting ray should be
a ray in the direction the controller is pointing
Implements abstract method on WebVRController class, loading controller meshes and calling this.attachToMesh if successful.
scene in which to add meshes
optional callback function that will be called if the mesh loads successfully.
Fired when a controller button's state has changed
the callback containing the button that was modified
Called once per frame by the engine.
Updates the state of the pose enbaled controller based on the raw pose data from the device
raw pose fromthe device
Generated using TypeDoc
Defines the WindowsMotionController object that the state of the windows motion controller