Trying to create a '2D 8 Ball Pool' game - Trajectory Prediction

I am trying to create a game similar to (Pocket Run Pool)

a 2D pool game which is much simpler than a 3D one I need help with creating code for trajectory prediction something similar to this Unity - Manual: Multi-scene physics

How do I go about doing this?

what is ur problem about it

https://answers.unity.com/questions/1808708/trying-to-create-a-2d-8-ball-pool-game-trajectory.html?childToView=1809104#comment-1809104

here is a link to the discussion on the other thread

now the accuracy of the line coming out of the ball(not white) is not accurate to the line being rendered