|
@@ -224,6 +224,8 @@ public class ShootCheck : MonoBehaviour
|
|
|
return (int)shortNum;
|
|
return (int)shortNum;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public float arrowWeight = 60;
|
|
|
|
|
+
|
|
|
bool check(float ax, float ay, float az, string t)
|
|
bool check(float ax, float ay, float az, string t)
|
|
|
{
|
|
{
|
|
|
float acc = ay;
|
|
float acc = ay;
|
|
@@ -289,7 +291,7 @@ public class ShootCheck : MonoBehaviour
|
|
|
|
|
|
|
|
string strShootSpeed = "弓轨速度: " + shootSpeed + " 帧数: " + keyAccList.Count + "\n";
|
|
string strShootSpeed = "弓轨速度: " + shootSpeed + " 帧数: " + keyAccList.Count + "\n";
|
|
|
|
|
|
|
|
- shootSpeed *= 1.491f;
|
|
|
|
|
|
|
+ shootSpeed = Mathf.Sqrt(shootSpeed * shootSpeed * arrowWeight / LoginMgr.myUserInfo.actualArrowWeight);
|
|
|
|
|
|
|
|
strShootSpeed += "箭的速度: " + shootSpeed + "\n";
|
|
strShootSpeed += "箭的速度: " + shootSpeed + "\n";
|
|
|
|
|
|