UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

35 lines (34 loc) 1.42 kB
import type { IMinimalMotionControllerObject, MotionControllerHandedness } from "./webXRAbstractMotionController.js"; import { WebXRAbstractMotionController } from "./webXRAbstractMotionController.js"; import type { Scene } from "../../scene.js"; import type { AbstractMesh } from "../../Meshes/abstractMesh.js"; /** * The motion controller class for the standard HTC-Vive controllers */ export declare class WebXRHTCViveMotionController extends WebXRAbstractMotionController { private _modelRootNode; /** * The base url used to load the left and right controller models */ static MODEL_BASE_URL: string; /** * File name for the controller model. */ static MODEL_FILENAME: string; profileId: string; /** * Create a new Vive motion controller object * @param scene the scene to use to create this controller * @param gamepadObject the corresponding gamepad object * @param handedness the handedness of the controller */ constructor(scene: Scene, gamepadObject: IMinimalMotionControllerObject, handedness: MotionControllerHandedness); protected _getFilenameAndPath(): { filename: string; path: string; }; protected _getModelLoadingConstraints(): boolean; protected _processLoadedModel(_meshes: AbstractMesh[]): void; protected _setRootMesh(meshes: AbstractMesh[]): void; protected _updateModel(): void; }