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