Raanan Weber vor 5 Jahren
Ursprung
Commit
dc2e483a91
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 6 0
      src/Cameras/XR/webXRControllerTeleportation.ts

+ 6 - 0
src/Cameras/XR/webXRControllerTeleportation.ts

@@ -18,6 +18,12 @@ export class WebXRControllerTeleportation {
     private _tmpRay = new Ray(new Vector3(), new Vector3());
     private _tmpRay = new Ray(new Vector3(), new Vector3());
     private _tmpVector = new Vector3();
     private _tmpVector = new Vector3();
 
 
+    /**
+     * when set to true (default) teleportation will wait for thumbstick changes.
+     * When set to false teleportation will be disabled.
+     * 
+     * If set to false while teleporting results can be unexpected.
+     */
     public enabled: boolean = true;
     public enabled: boolean = true;
 
 
     /**
     /**