- Home /
Draw path for the ball
Hi, i find this little game and i want do it similar:
http://g.gratis-giochi.it/g.php?id=2198
Specifically what I would like to do is that the player drawing a line, and a ball follows the path that the player has drawn ... I thought that you could do with the line renderer, but I can not think of any other ideas S:
Why not use the line renderer, as you suggested?
I don't know if is it the best way. $$anonymous$$aybe there are better ways...
I have already google it and i'm not find anything about this... S:
Answer by luckruns0ut · Apr 10, 2013 at 11:10 AM
Make an array of points containing the start and end points of each line drawn. Make the ball iterate through the points by going to one and then the other etc.
Your answer
Follow this Question
Related Questions
Handles.DrawLine refresh rate in scene view 1 Answer
How to draw an animated line over a random path? 0 Answers
Draw line from one point to another using mouse 0 Answers
Color Handles.DrawLine 1 Answer
Draw a line in Game View? 5 Answers