@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.
40 lines (39 loc) • 1.65 kB
TypeScript
/** This file must only contain pure code and pure imports */
import { WebXRAbstractMotionController, type IMinimalMotionControllerObject, type MotionControllerHandedness } from "./webXRAbstractMotionController.js";
import { type AbstractMesh } from "../../Meshes/abstractMesh.pure.js";
import { type Scene } from "../../scene.pure.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;
}
/**
* Register side effects for webXRHTCViveMotionController.
* Safe to call multiple times; only the first call has an effect.
*/
export declare function RegisterWebXRHTCViveMotionController(): void;