Description
class WindowsMotionController extends WebVRController
Constructor
Parameters
|
Name |
Type |
Description |
|
vrGamepad |
any |
|
Members
static GAMEPAD_ID_PREFIX : string
Methods
update() → void
Called once per frame by the engine.
Called once for each button that changed state since the last frame
Parameters
|
Name |
Type |
Description |
|
buttonIdx |
number |
Which button index changed |
|
state |
ExtendedGamepadButton |
New state of the button |
|
changes |
GamepadButtonChanges |
Which properties on the state changed since last frame |
Parameters
|
Name |
Type |
Description |
|
buttonName |
string |
|
|
buttonValue |
number |
|
Parameters
|
Name |
Type |
Description |
|
axis |
number |
|
|
axisValue |
number |
|
initControllerMesh(scene, meshLoaded, forceDefault) → void
Implements abstract method on WebVRController class, loading controller meshes and calling this.attachToMesh if successful.
Parameters
|
Name |
Type |
Description |
|
scene |
Scene |
scene in which to add meshes |
optional |
meshLoaded |
|
mesh |
AbstractMesh |
|
| optional callback function that will be called if the mesh loads successfully.
getForwardRay(length) → Ray
Parameters
|
Name |
Type |
Description |
optional |
length |
number |
|
dispose() → void