|
|
@@ -159,7 +159,9 @@ public class ArmBow : MonoBehaviour
|
|
|
Camera.main.transform.rotation = oldCameraRotation;
|
|
|
|
|
|
Vector3 shootOutPosition = this.bowCamera.transform.position;
|
|
|
- GameObject arrowCopy = GameObject.Instantiate(this.arrow, shootOutPosition, absolute_rotation);
|
|
|
+ Vector3 arrowEuler = absolute_rotation.eulerAngles;
|
|
|
+ arrowEuler.z = 0; //绝对角可能是从原始九轴记录数组里取出来的,它的z可能不是0
|
|
|
+ GameObject arrowCopy = GameObject.Instantiate(this.arrow, shootOutPosition, Quaternion.Euler(arrowEuler));
|
|
|
|
|
|
Vector3 s1 = arrowCopy.transform.localScale;
|
|
|
Vector3 s2 = bowCamera.transform.localScale;
|