浏览代码

Change upperBetaLimit to avoid weird behaviours when beta is PI

Alexandre Carvallo 6 年之前
父节点
当前提交
0e33415523
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.
          */
         @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).