projection/trajectory motion Unity3d

hello everyone ,

I have a doubt about trajectory line. Actually i am working on soccer game in that i am making penalty kick kind of game.

Reference game link is here :

https://play.google.com/store/apps/details?id=com.gamegou.PerfectKick.google

now in this game , on touch we can see projection line . and ball is kicked towards that direction and with that angle.

But my doubt is that how to draw that line on touch and based on that line how do i calculate the angle and direction so that my ball can be kicked to that position ?

so please help me guys. Any kind of reference tutorial based on that i can do work then also let me know.

Thanks in advance for your support and help.

- YouTube This is the script created by me i hope this will be helpfull