iTweens MoveTo and "path" property

Hi there,

I don't know, what I'm doing wrong here, but I can't seem to use the "path"-property within MoveTo. Here's the code snippet I use:

iTween.MoveTo(gameObject, iTween.Hash("path",iTweenPath.GetPath("Path1"), "time",5));

or more explicitely this one:

iTween.MoveTo(gameObject, iTween.Hash("path",[Vector3(1,2,3),Vector3(2,1,3),Vector3(3,2,1)], "time",5));

The object to which the code is attached doesn't move at all. However if I add "movetopath",false it will stick right to the first node of the path - but won't move as well.

iTween was a big help so far and I checked the examples for PutOnPath and PointOnPath but the Path-Editor + MoveTo seems more like the solution for me because of the easing for the movement.

That's odd - are there any other scripts on the GO?

Is this resolved?

I prepared a simple and small test-project. Perhaps someone can figure it out. I might be totally wrong, with what I'm doing, so any help would be much appreciated!

Here's the file: http://www.sendspace.com/file/2se5fr

surely it ll work specify the name of the path u have created correctly

iTween.MoveTo(gameObject, iTween.Hash("path" , iTweenPath.GetPath("CamPathForward"), "time" , 10, "easeType", iTween.EaseType.easeInOutSine));

CamPathForward - path name ...v created using pathEditor script

I am having a similar issue. I have a truck with a camera inside the cab showing all the different types of radios. I have a gui that you click to take down each path depending on which radio you choose. The itween paths work and it flows well, the issues comes in when I attach a script to the camera to make it look to a cube that i have animating using moveto. I couldn’t figure out how to rotate the camera toward an object once the path ended so I use the

void Update () {
transform.LookAt(target);

}

The target is the cube.

This works but he camera is jittery as it travels down the path to look at the cube. If I take off the LookAt script, the camera runs smooth but the camera is not looking at the object. There is no colliders on the box. Do you have any solutions?

I am having a similar issue. I have a truck with a camera inside the cab showing all the different types of radios. I have a gui that you click to take down each path depending on which radio you choose. The itween paths work and it flows well, the issues comes in when I attach a script to the camera to make it look to a cube that i have animating using moveto. I couldn’t figure out how to rotate the camera toward an object once the path ended so I use the

void Update () {
transform.LookAt(target);

}

The target is the cube.

This works but he camera is jittery as it travels down the path to look at the cube. If I take off the LookAt script, the camera runs smooth but the camera is not looking at the object. There is no colliders on the box. Do you have any solutions?

Code in C# works well:
iTween.MoveTo(gameObject, iTween.Hash(“path”, new Vector3{new Vector3(1,2,3), new Vector3(2,1,3), new Vector3(3,2,1)}, “time”,5));