Browse Source

update BluetoothAim.cs

lvjincheng 4 years ago
parent
commit
15b127d2df
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Assets/BowArrow/Scripts/Bluetooth/BluetoothAim.cs

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

@@ -359,7 +359,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 +