Quellcode durchsuchen

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

yichael vor 4 Jahren
Ursprung
Commit
85d6413fac
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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 +