lvjincheng il y a 4 ans
Parent
commit
faaae3afbc

+ 3 - 0
Assets/BowArrow/Scripts/Bluetooth/BluetoothAim.cs

@@ -468,6 +468,8 @@ class AimHandler
         Quaternion nextRotation = controlObj.localRotation;
         filter.Update(ref nextRotation, newRotation);
         newRotation = nextRotation;
+
+        // 记录一些旋转角---start
         if (ArmBow.ins != null) {
             for (int i = ArmBow.ins.recordRotations.Length - 1; i > 0 ; i--)
             {
@@ -476,6 +478,7 @@ class AimHandler
             ArmBow.ins.recordRotations[0] = newRotation;
             ArmBow.ins.recordCount++;
         }
+        // 记录一些旋转角---end
 
         receiveDataCount++;
         if (!hasAutoIdentity && receiveDataCount == 5) {

+ 2 - 0
Assets/BowArrow/Scripts/Game/ArmBow.cs

@@ -116,6 +116,7 @@ public class ArmBow : MonoBehaviour
     public void shoot() {
         // Vector3 rayHitPoint = CrossHair.ins.getRayHitPoint();
 
+        // 筛选出一个稳定的发射角度---start
         Quaternion best_rotation = this.bowCamera.transform.rotation;
         if (recordCount >= recordRotations.Length) {
             int single_check_count = 6;
@@ -138,6 +139,7 @@ public class ArmBow : MonoBehaviour
                 }
             }
         }
+        // 筛选出一个稳定的发射角度---end
 
         GameObject arrowCopy = GameObject.Instantiate(this.arrow, this.bowCamera.transform.position, best_rotation);
 

+ 11 - 0
Assets/FPSTester.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: b4d0fe8e41d1070489ff7c5dc96fcbb1
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: