CLASSES
TagsA - Z

WindowsMotionController

Description

class WindowsMotionController extends WebVRController

Constructor

new WindowsMotionController(vrGamepad)

Parameters

Name Type Description
vrGamepad any

Members

static GAMEPAD_ID_PREFIX : string

onTrackpadChangedObservable : Observable<ExtendedGamepadButton>

onTriggerButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onMenuButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onGripButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onThumbstickButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onTouchpadButtonStateChangedObservable : Observable<ExtendedGamepadButton>

Methods

update() void

Called once per frame by the engine.

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) => void optional callback function that will be called if the mesh loads successfully.
optional forceDefault boolean

getForwardRay(length) Ray

Parameters

Name Type Description
optional length number

dispose() void