webXRGenericHandController.d.ts 1.2 KB

12345678910111213141516171819202122232425
  1. import type { IMinimalMotionControllerObject, MotionControllerHandedness } from "./webXRAbstractMotionController";
  2. import { WebXRAbstractMotionController } from "./webXRAbstractMotionController";
  3. import type { Scene } from "../../scene";
  4. import type { AbstractMesh } from "../../Meshes/abstractMesh";
  5. /**
  6. * A generic hand controller class that supports select and a secondary grasp
  7. */
  8. export declare class WebXRGenericHandController extends WebXRAbstractMotionController {
  9. profileId: string;
  10. /**
  11. * Create a new hand controller object, without loading a controller model
  12. * @param scene the scene to use to create this controller
  13. * @param gamepadObject the corresponding gamepad object
  14. * @param handedness the handedness of the controller
  15. */
  16. constructor(scene: Scene, gamepadObject: IMinimalMotionControllerObject, handedness: MotionControllerHandedness);
  17. protected _getFilenameAndPath(): {
  18. filename: string;
  19. path: string;
  20. };
  21. protected _getModelLoadingConstraints(): boolean;
  22. protected _processLoadedModel(_meshes: AbstractMesh[]): void;
  23. protected _setRootMesh(meshes: AbstractMesh[]): void;
  24. protected _updateModel(): void;
  25. }