Browse Source

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

David Catuhe 6 năm trước cách đây
mục cha
commit
4ea1e0fc36
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {
             if (!this.noRotationConstraint) {
-                var limit = (Math.PI / 2) * 0.95;
+                var limit = 1.570796;
 
 
                 if (this.rotation.x > limit) {
                 if (this.rotation.x > limit) {
                     this.rotation.x = limit;
                     this.rotation.x = limit;