- Home /
Drawing trajectory/path in game view
what I want to achieve: a game where user will create collision between two objects at a specific velocity, angle, weight etc. and try to create the most spectacular crash (mostly motorcycle crash).
In order to do that, I need the user to be able to draw a trajectory between two or more points and this is where I'm stuck.
Is there any tutorial, help, scripts, anything!! I'm a beginner and I need some help to achieve this task!
Answer by robertbu · Aug 19, 2013 at 02:57 PM
If you are going to be doing any significant line rendering, consider purchasing Vectrosity. If you are looking at free, here are some links to get you started:
http://www.everyday3d.com/blog/index.php/2010/03/15/3-ways-to-draw-3d-lines-in-unity3d/
http://cgcookie.com/unity/2013/05/03/animate-a-line-draw-using-line-renderer-component/
In this answer, I provide a bit of code that will rotate and scale a cylinder as the mouse is dragged:
http://answers.unity3d.com/questions/492786/draw-an-arrow-on-the-screen.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613112524im_/https://answers.unity.com/themes/thub/images/avi.jpg)