I want to create a directional line ( curve / linear ) depending where the direction is coming from.
In some games, similar to Angry Birds, a dotted guideline is shown to provide where the gameObject is going.
I want to create something like that. But not from the starting point. When i mean starting point, it simply means a dotted guideline from where the gameObject is released.
What i want is a dotted guideline from the end point. However, this end point is fixed. How i imagine this is, i have a gameObject. When this gameObject is near to land around this end point, it will show the dotted guideline.
Am i asking too much ? Sorry if i am, a structural guideline of how to write this code would be great.
Thanks.
Edit
So this how i want it visual. In Diagram ( A ) it shows a dotted line through the whole course of the path.
However what i want is shown in Diagram ( B ). It is split into two parts, a orange and red path. I only want the red path. But for a clear understand i included the red path. I only want the object to land or around that spot of Diagram ( B ).
What i dont want is from Diagram ( C ). Because it is not landing in the spot of Diagram ( B ). I dont want it to show anything. I only want the red dotted line from Diagram to appear when it is near or going to land in that spot of Diagram ( B ).
Thanks