Hi,
I’m trying to create a smooth curved line for an object to move along.
I can create a straight line by grabbing the position of the touched object and the position where the touch ends. What I’d like to be able to do though is to “smooth” the initial sharp angle and have a gentle curved approach.
Example: http://imageshack.us/photo/my-images/819/curvedlines.png
(Image on the left is how I currently move objects, image on the right is how I’d like to move objects).
If I had additional points on the angled line I could then use those points as the start and end points of a bezier curve.
Does anyone know how I could add those points? I’m assuming it’ll be some triangle cos/sine/whatever maths approach but I can’t get my head around it.
Any ideas? [import]uid: 27215 topic_id: 15599 reply_id: 315599[/import]