- Home /
Calculate a spline with start- and endpos
I want to draw a circular path between 2 end- or startpoints of a line with the linerenderer. I did some research and think this might come in helpful since I need an array of points, which can be determined by the angle Alpha.
![alt text][1]
Now it gets tricky when applying this to points who don't share a same axis position, or something, since the circle would be an ellipse as seen below (red are line paths, the outer side of the ellipse should present the wanted path) ![alt text][2]
I want this path to never have a sharp angel, just as smooth as it can get. [1]: /storage/temp/22588-image014.gif [2]: /storage/temp/22590-question.png
This sounds like an interesting problem, but I've read your questions a couple of times and cannot figure out exactly what you are asking.
Thank you robertbu, but yes it's hard to explain. Look at it as the tool from $$anonymous$$icrosoft paint, it has a tool to draw an bezier/arc by drawing a line first, then creating the the arc by pulling it.
Lucky I found the code somewhere to draw the arc. I'm just figuring out now how to implement it, once I do, ill post the code here.