Browse Source

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

yichael 4 năm trước cách đây
mục cha
commit
85d6413fac
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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 +