webXRHTCViveMotionController.d.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  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. * The motion controller class for the standard HTC-Vive controllers
  7. */
  8. export declare class WebXRHTCViveMotionController extends WebXRAbstractMotionController {
  9. private _modelRootNode;
  10. /**
  11. * The base url used to load the left and right controller models
  12. */
  13. static MODEL_BASE_URL: string;
  14. /**
  15. * File name for the controller model.
  16. */
  17. static MODEL_FILENAME: string;
  18. profileId: string;
  19. /**
  20. * Create a new Vive motion controller object
  21. * @param scene the scene to use to create this controller
  22. * @param gamepadObject the corresponding gamepad object
  23. * @param handedness the handedness of the controller
  24. */
  25. constructor(scene: Scene, gamepadObject: IMinimalMotionControllerObject, handedness: MotionControllerHandedness);
  26. protected _getFilenameAndPath(): {
  27. filename: string;
  28. path: string;
  29. };
  30. protected _getModelLoadingConstraints(): boolean;
  31. protected _processLoadedModel(_meshes: AbstractMesh[]): void;
  32. protected _setRootMesh(meshes: AbstractMesh[]): void;
  33. protected _updateModel(): void;
  34. }