Shoot a ball towards mouse click

From last 3 days i am trying to shoot a ball towards mouse click. It seems very hard as i am using cocos for the first time. Suppose you has a scene that has canvas which has ball and camera node as child.

What will be the code to shoot the ball towards your touch end position. i am using cocos creator 3.7.3