Просмотр исходного кода

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe 6 лет назад
Родитель
Сommit
4ea1e0fc36
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Cameras/targetCamera.ts

+ 1 - 1
src/Cameras/targetCamera.ts

@@ -311,7 +311,7 @@ export class TargetCamera extends Camera {
             }
 
             if (!this.noRotationConstraint) {
-                var limit = (Math.PI / 2) * 0.95;
+                var limit = 1.570796;
 
                 if (this.rotation.x > limit) {
                     this.rotation.x = limit;