浏览代码

Merge branch 'master' of http://81.70.224.233:10080/yichael/SmartBow

yichael 4 年之前
父节点
当前提交
85d6413fac
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Assets/BowArrow/Scripts/Bluetooth/BluetoothAim.cs

+ 2 - 1
Assets/BowArrow/Scripts/Bluetooth/BluetoothAim.cs

@@ -361,7 +361,8 @@ class AimHandler
     {
         if (hasAutoIdentity && controlObj != null)
         {
-            controlObj.localRotation = Quaternion.Lerp(controlObj.localRotation, newRotation, Time.deltaTime * 6);
+            // controlObj.localRotation = Quaternion.Lerp(controlObj.localRotation, newRotation, Time.deltaTime * 6);
+            controlObj.localRotation = newRotation;
             GameObject.Find("Canvas/RPY_LOG").GetComponent<Text>().text = 
                 "roll: " + controlObj.localEulerAngles.x +
                 "\npitch: " + controlObj.localEulerAngles.y +