I am making the arrow rain effect by using particle system (emit angle 60 degree + gravity modifier + start speed), is it possible to calculate the “start speed” by the given start position and end position so that the arrows can emitted to the target area ?
I tried script as below but the projectile velocity is not same as the “start speed”.
var gravity = 9.8f; var firingAngle =
60f; float target_Distance =
target); float projectile_Velocity =
target_Distance / (Mathf.Sin(2 *
firingAngle * Mathf.Deg2Rad) /