Browse Source

镜头平滑插值取消

lvjincheng 3 years ago
parent
commit
39d218d9bc

+ 1 - 1
Assets/BowArrow/Scripts/Bluetooth/AimHandler.cs

@@ -337,7 +337,7 @@ public class AimHandler : MonoBehaviour
         // 记录一些旋转角---end
     }   
 
-    public bool lerpForRotation = true;
+    public bool lerpForRotation = false;
     public void Update()
     {
         if (controlObj && !banControlObjRotate)

+ 9 - 0
Assets/BowArrow/Scripts/Game/BowCamera.cs

@@ -83,6 +83,15 @@ public class BowCamera : MonoBehaviour
             touchChecker.Update();
         } else {
             if (SB_EventSystem.ins && SB_EventSystem.ins.simulateMouseIsAwaked) return;
+            //需要-镜头看向九轴姿态虚拟节点
+            needLookAtPoint = true;
+        }
+    }
+
+    bool needLookAtPoint = false; //需要-镜头看向九轴姿态虚拟节点?
+    void LateUpdate() {
+        if (needLookAtPoint) {
+            needLookAtPoint = false;
             //镜头看向九轴姿态虚拟节点
             this.transform.LookAt(CameraToLook.ins.point);
         }