Parcourir la source

update BluetoothAim.cs

lvjincheng il y a 4 ans
Parent
commit
15b127d2df
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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 +