David Catuhe hace 7 años
padre
commit
49c0ba067b

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 14905 - 14897
dist/preview release/babylon.d.ts


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 7 - 7
dist/preview release/babylon.js


+ 22 - 13
dist/preview release/babylon.max.js

@@ -52820,6 +52820,7 @@ var BABYLON;
             if (!running) {
                 this._raiseOnAnimationEnd();
                 this.onAnimationEnd = null;
+                this.onAnimationEndObservable.clear();
             }
             return running;
         };
@@ -88748,6 +88749,9 @@ var BABYLON;
             if (webVROptions.createDeviceOrientationCamera === undefined) {
                 webVROptions.createDeviceOrientationCamera = true;
             }
+            if (webVROptions.laserToggle === undefined) {
+                webVROptions.laserToggle = true;
+            }
             if (webVROptions.defaultHeight === undefined) {
                 webVROptions.defaultHeight = 1.7;
             }
@@ -88893,6 +88897,9 @@ var BABYLON;
             //create easing functions
             this._circleEase = new BABYLON.CircleEase();
             this._circleEase.setEasingMode(BABYLON.EasingFunction.EASINGMODE_EASEINOUT);
+            if (this.webVROptions.floorMeshes) {
+                this.enableTeleportation({ floorMeshes: this.webVROptions.floorMeshes });
+            }
         }
         Object.defineProperty(VRExperienceHelper.prototype, "onEnteringVR", {
             /** Return this.onEnteringVRObservable
@@ -89371,20 +89378,22 @@ var BABYLON;
             if (controllerMesh) {
                 controller._interactionsEnabled = true;
                 controller._activatePointer();
-                controller.webVRController.onMainButtonStateChangedObservable.add(function (stateObject) {
-                    // Enabling / disabling laserPointer 
-                    if (_this._displayLaserPointer && stateObject.value === 1) {
-                        if (controller._activePointer) {
-                            controller._deactivatePointer();
-                        }
-                        else {
-                            controller._activatePointer();
-                        }
-                        if (_this.displayGaze) {
-                            controller._gazeTracker.isVisible = controller._activePointer;
+                if (this.webVROptions.laserToggle) {
+                    controller.webVRController.onMainButtonStateChangedObservable.add(function (stateObject) {
+                        // Enabling / disabling laserPointer 
+                        if (_this._displayLaserPointer && stateObject.value === 1) {
+                            if (controller._activePointer) {
+                                controller._deactivatePointer();
+                            }
+                            else {
+                                controller._activatePointer();
+                            }
+                            if (_this.displayGaze) {
+                                controller._gazeTracker.isVisible = controller._activePointer;
+                            }
                         }
-                    }
-                });
+                    });
+                }
                 controller.webVRController.onTriggerStateChangedObservable.add(function (stateObject) {
                     if (!controller._pointerDownOnMeshAsked) {
                         if (stateObject.value > _this._padSensibilityUp) {

+ 22 - 13
dist/preview release/babylon.no-module.max.js

@@ -52787,6 +52787,7 @@ var BABYLON;
             if (!running) {
                 this._raiseOnAnimationEnd();
                 this.onAnimationEnd = null;
+                this.onAnimationEndObservable.clear();
             }
             return running;
         };
@@ -88715,6 +88716,9 @@ var BABYLON;
             if (webVROptions.createDeviceOrientationCamera === undefined) {
                 webVROptions.createDeviceOrientationCamera = true;
             }
+            if (webVROptions.laserToggle === undefined) {
+                webVROptions.laserToggle = true;
+            }
             if (webVROptions.defaultHeight === undefined) {
                 webVROptions.defaultHeight = 1.7;
             }
@@ -88860,6 +88864,9 @@ var BABYLON;
             //create easing functions
             this._circleEase = new BABYLON.CircleEase();
             this._circleEase.setEasingMode(BABYLON.EasingFunction.EASINGMODE_EASEINOUT);
+            if (this.webVROptions.floorMeshes) {
+                this.enableTeleportation({ floorMeshes: this.webVROptions.floorMeshes });
+            }
         }
         Object.defineProperty(VRExperienceHelper.prototype, "onEnteringVR", {
             /** Return this.onEnteringVRObservable
@@ -89338,20 +89345,22 @@ var BABYLON;
             if (controllerMesh) {
                 controller._interactionsEnabled = true;
                 controller._activatePointer();
-                controller.webVRController.onMainButtonStateChangedObservable.add(function (stateObject) {
-                    // Enabling / disabling laserPointer 
-                    if (_this._displayLaserPointer && stateObject.value === 1) {
-                        if (controller._activePointer) {
-                            controller._deactivatePointer();
-                        }
-                        else {
-                            controller._activatePointer();
-                        }
-                        if (_this.displayGaze) {
-                            controller._gazeTracker.isVisible = controller._activePointer;
+                if (this.webVROptions.laserToggle) {
+                    controller.webVRController.onMainButtonStateChangedObservable.add(function (stateObject) {
+                        // Enabling / disabling laserPointer 
+                        if (_this._displayLaserPointer && stateObject.value === 1) {
+                            if (controller._activePointer) {
+                                controller._deactivatePointer();
+                            }
+                            else {
+                                controller._activatePointer();
+                            }
+                            if (_this.displayGaze) {
+                                controller._gazeTracker.isVisible = controller._activePointer;
+                            }
                         }
-                    }
-                });
+                    });
+                }
                 controller.webVRController.onTriggerStateChangedObservable.add(function (stateObject) {
                     if (!controller._pointerDownOnMeshAsked) {
                         if (stateObject.value > _this._padSensibilityUp) {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 7 - 7
dist/preview release/babylon.worker.js


+ 22 - 13
dist/preview release/es6.js

@@ -52787,6 +52787,7 @@ var BABYLON;
             if (!running) {
                 this._raiseOnAnimationEnd();
                 this.onAnimationEnd = null;
+                this.onAnimationEndObservable.clear();
             }
             return running;
         };
@@ -88715,6 +88716,9 @@ var BABYLON;
             if (webVROptions.createDeviceOrientationCamera === undefined) {
                 webVROptions.createDeviceOrientationCamera = true;
             }
+            if (webVROptions.laserToggle === undefined) {
+                webVROptions.laserToggle = true;
+            }
             if (webVROptions.defaultHeight === undefined) {
                 webVROptions.defaultHeight = 1.7;
             }
@@ -88860,6 +88864,9 @@ var BABYLON;
             //create easing functions
             this._circleEase = new BABYLON.CircleEase();
             this._circleEase.setEasingMode(BABYLON.EasingFunction.EASINGMODE_EASEINOUT);
+            if (this.webVROptions.floorMeshes) {
+                this.enableTeleportation({ floorMeshes: this.webVROptions.floorMeshes });
+            }
         }
         Object.defineProperty(VRExperienceHelper.prototype, "onEnteringVR", {
             /** Return this.onEnteringVRObservable
@@ -89338,20 +89345,22 @@ var BABYLON;
             if (controllerMesh) {
                 controller._interactionsEnabled = true;
                 controller._activatePointer();
-                controller.webVRController.onMainButtonStateChangedObservable.add(function (stateObject) {
-                    // Enabling / disabling laserPointer 
-                    if (_this._displayLaserPointer && stateObject.value === 1) {
-                        if (controller._activePointer) {
-                            controller._deactivatePointer();
-                        }
-                        else {
-                            controller._activatePointer();
-                        }
-                        if (_this.displayGaze) {
-                            controller._gazeTracker.isVisible = controller._activePointer;
+                if (this.webVROptions.laserToggle) {
+                    controller.webVRController.onMainButtonStateChangedObservable.add(function (stateObject) {
+                        // Enabling / disabling laserPointer 
+                        if (_this._displayLaserPointer && stateObject.value === 1) {
+                            if (controller._activePointer) {
+                                controller._deactivatePointer();
+                            }
+                            else {
+                                controller._activatePointer();
+                            }
+                            if (_this.displayGaze) {
+                                controller._gazeTracker.isVisible = controller._activePointer;
+                            }
                         }
-                    }
-                });
+                    });
+                }
                 controller.webVRController.onTriggerStateChangedObservable.add(function (stateObject) {
                     if (!controller._pointerDownOnMeshAsked) {
                         if (stateObject.value > _this._padSensibilityUp) {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 7 - 7
dist/preview release/viewer/babylon.viewer.js


+ 22 - 13
dist/preview release/viewer/babylon.viewer.max.js

@@ -52908,6 +52908,7 @@ var BABYLON;
             if (!running) {
                 this._raiseOnAnimationEnd();
                 this.onAnimationEnd = null;
+                this.onAnimationEndObservable.clear();
             }
             return running;
         };
@@ -88836,6 +88837,9 @@ var BABYLON;
             if (webVROptions.createDeviceOrientationCamera === undefined) {
                 webVROptions.createDeviceOrientationCamera = true;
             }
+            if (webVROptions.laserToggle === undefined) {
+                webVROptions.laserToggle = true;
+            }
             if (webVROptions.defaultHeight === undefined) {
                 webVROptions.defaultHeight = 1.7;
             }
@@ -88981,6 +88985,9 @@ var BABYLON;
             //create easing functions
             this._circleEase = new BABYLON.CircleEase();
             this._circleEase.setEasingMode(BABYLON.EasingFunction.EASINGMODE_EASEINOUT);
+            if (this.webVROptions.floorMeshes) {
+                this.enableTeleportation({ floorMeshes: this.webVROptions.floorMeshes });
+            }
         }
         Object.defineProperty(VRExperienceHelper.prototype, "onEnteringVR", {
             /** Return this.onEnteringVRObservable
@@ -89459,20 +89466,22 @@ var BABYLON;
             if (controllerMesh) {
                 controller._interactionsEnabled = true;
                 controller._activatePointer();
-                controller.webVRController.onMainButtonStateChangedObservable.add(function (stateObject) {
-                    // Enabling / disabling laserPointer 
-                    if (_this._displayLaserPointer && stateObject.value === 1) {
-                        if (controller._activePointer) {
-                            controller._deactivatePointer();
-                        }
-                        else {
-                            controller._activatePointer();
-                        }
-                        if (_this.displayGaze) {
-                            controller._gazeTracker.isVisible = controller._activePointer;
+                if (this.webVROptions.laserToggle) {
+                    controller.webVRController.onMainButtonStateChangedObservable.add(function (stateObject) {
+                        // Enabling / disabling laserPointer 
+                        if (_this._displayLaserPointer && stateObject.value === 1) {
+                            if (controller._activePointer) {
+                                controller._deactivatePointer();
+                            }
+                            else {
+                                controller._activatePointer();
+                            }
+                            if (_this.displayGaze) {
+                                controller._gazeTracker.isVisible = controller._activePointer;
+                            }
                         }
-                    }
-                });
+                    });
+                }
                 controller.webVRController.onTriggerStateChangedObservable.add(function (stateObject) {
                     if (!controller._pointerDownOnMeshAsked) {
                         if (stateObject.value > _this._padSensibilityUp) {