Raanan Weber 5 years ago
parent
commit
be78d2fcc1
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/Cameras/XR/webXRController.ts

+ 8 - 1
src/Cameras/XR/webXRController.ts

@@ -8,7 +8,14 @@ import { WebXRMotionControllerManager } from './motionController/webXRMotionCont
 
 
 let idCount = 0;
 let idCount = 0;
 
 
+/**
+ * Configuration options for the WebXR controller creation
+ */
 export interface IWebXRControllerOptions {
 export interface IWebXRControllerOptions {
+    /**
+     * Force a specific controller type for this controller.
+     * This can be used when creating your own profile or when testing different controllers
+     */
     forceControllerProfile?: string;
     forceControllerProfile?: string;
 }
 }
 
 
@@ -45,7 +52,7 @@ export class WebXRController {
      * @see https://doc.babylonjs.com/how_to/webxr
      * @see https://doc.babylonjs.com/how_to/webxr
      * @param _scene the scene which the controller should be associated to
      * @param _scene the scene which the controller should be associated to
      * @param inputSource the underlying input source for the controller
      * @param inputSource the underlying input source for the controller
-     * @param controllerProfile An optional controller profile for this input. This will override the xrInput profile.
+     * @param _options options for this controller creation
      */
      */
     constructor(
     constructor(
         private _scene: Scene,
         private _scene: Scene,