xzw 3 năm trước cách đây
mục cha
commit
a65c24d25e
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      public/package/js/objViewer.js

+ 2 - 1
public/package/js/objViewer.js

@@ -80,8 +80,9 @@ Viewer.prototype.setRenderer = function () {
 Viewer.prototype.update = function (deltaTime) {//绘制的时候同时更新 
     //if(!this.active)return;
     this.setSize()
-    this.control.update(deltaTime)
     transitions.update(deltaTime)
+    this.control.update(deltaTime)//写在transitions后面否则镜头抖动
+    
     var needsUpdate = 1;
 
     if (needsUpdate) {