Browse Source

Merge pull request #5698 from a-carvallo/fix-arcRotateCamera-upperBetaLimit

Change upperBetaLimit to avoid weird behaviours when beta is PI
David Catuhe 6 years ago
parent
commit
014f937270
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Cameras/babylon.arcRotateCamera.ts

+ 1 - 1
src/Cameras/babylon.arcRotateCamera.ts

@@ -91,7 +91,7 @@ module BABYLON {
          * This can help limiting how the Camera is able to move in the scene.
          * This can help limiting how the Camera is able to move in the scene.
          */
          */
         @serialize()
         @serialize()
-        public upperBetaLimit = Math.PI;
+        public upperBetaLimit = Math.PI - 0.01;
 
 
         /**
         /**
          * Minimum allowed distance of the camera to the target (The camera can not get closer).
          * Minimum allowed distance of the camera to the target (The camera can not get closer).