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.

31 lines (30 loc) 1.44 kB
/** 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"; /** * A generic hand controller class that supports select and a secondary grasp */ export declare class WebXRGenericHandController extends WebXRAbstractMotionController { profileId: string; /** * Create a new hand controller object, without loading a controller model * @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 webXRGenericHandController. * Safe to call multiple times; only the first call has an effect. */ export declare function RegisterWebXRGenericHandController(): void;