Show prediction for ball rolling on surface

In many golf games there is a line/guide when putting that shows a preview of how the ball will roll given a specific power applied to it.

What techniques can one use to make this in unity?

I know how to predict ball flight, but can’t figure out how to do it for rolling on uneven surface.

Picture:

Not sure of the best practice, but just try things. That’s the best way to get some knowledge/experience in it. There are a million different ways to do most things in programming. Just need to find one that works.

I would try shooting an invisible ball every time the Power or Angle is changed and then use that info to draw your prediction line. The rough ground does make it difficult to find trajectory without some practical means like this.