you subtract the world mouse position and the current player and normalize it , this will give you a direction where the mouse is . Then use this value to shoot the ball at the direction of the mouse . This well let player have more control over where to throw/pass the ball .