Ver código fonte

旧设备+手臂z坐标

lvjincheng 3 anos atrás
pai
commit
5cdc051f33

+ 6 - 6
Assets/BowArrow/Scripts/Bluetooth/BluetoothAim.cs

@@ -11,14 +11,14 @@ public class BluetoothAim : MonoBehaviour
     readonly string targetDeviceName = "Bbow_20210501";
 
     //旧设备-服务和特征
-    //readonly string targetDeviceService = "0000fff0"; //字母用小写
-    //readonly string targetDeviceCharacteristicWrite = "0000fff2"; //字母用小写
-    //readonly string targetDeviceCharacteristicNotify = "0000fff1"; //字母用小写
+    readonly string targetDeviceService = "0000fff0"; //字母用小写
+    readonly string targetDeviceCharacteristicWrite = "0000fff2"; //字母用小写
+    readonly string targetDeviceCharacteristicNotify = "0000fff1"; //字母用小写
 
     //新设备-服务和特征
-    readonly string targetDeviceService = "6e400001"; //字母用小写
-    readonly string targetDeviceCharacteristicWrite = "6e400002"; //字母用小写
-    readonly string targetDeviceCharacteristicNotify = "6e400003"; //字母用小写
+    //readonly string targetDeviceService = "6e400001"; //字母用小写
+    //readonly string targetDeviceCharacteristicWrite = "6e400002"; //字母用小写
+    //readonly string targetDeviceCharacteristicNotify = "6e400003"; //字母用小写
 
 
     BluetoothHelper bluetoothHelper;

+ 1 - 1
Assets/BowArrow/Scripts/Game/ArmBow.cs

@@ -19,7 +19,7 @@ public class ArmBow : MonoBehaviour
     public HashSet<TargetBody> validTargets = new HashSet<TargetBody>();
 
     //本地坐标z
-    public const float localPosZ = -0.3f;
+    public const float localPosZ = -0.15f;
     
     //射箭姿态记录索引倒退数,根据射击难度制造误差
     [NonSerialized] public int shootBackTime = 0;