i want to shoot my arrow with up direction as it’s velocity increase and it shoud turn down as it’s velocity decrease
Vector3 vel = arrowClone.rigidbody.velocity;
float angle = Mathf.Atan2(vel.y,vel.x)*Mathf.Rad2Deg;
print(angle);
arrowClone.transform.eulerAngles = new Vector3(0, 0, angle);
This is a common question with many Google hits; please try a search before posting a generic question.
http://forum.unity3d.com/threads/40495-Help-with-shooting-arrows
just one of many via Google “unity arrow”