Hi,
I am using iTween and I think it is a very useful tool, but I have an important question: how can I make paths that don´t blend when I put more than 2 nodes??
I want to make a path that has a capsule shape. It is for a race in an olympic stadium. So, in one part it must be straight, then make a semi-circle, then again straight and finally again a semi-circle. Like I have though with 7 nodes it should be enough, but when I put more than 2 nodes the path blends.
How I can make that the path doen´t blend?
thank you
igorlean
How are you creating the path and how are you telling the object to follow that path?
I create the path visually with the visual editor. Then by code I put the object on the path using PutOnPath and iTweenPath.GetPath(“MyPath”)
Maybe I must create the paths by code to make them straights? What functions are used to make the paths by code at runtime?
thanks!!
Paths in iTween are created using a Catmull-Rom function. There is no way to generate a straight path without writing your own implementation. There is an iTween example on the iTween website that shows how to move in straight lines between two way points but it is fraught with issues.
I would set up a path that is just a Vector3 array and then use iTween’s event callbacks to move from waypoint to waypoint.
Have you resolved your problem sir?