iTween Path (NOT visual editor)

Hi, all! I am trying to have iTween create a path using (0,0,0) and another generated point that I get through the game. When the function is called, however, it does not work in my game. Am I writing it incorrectly?

Thanks! - YA

P.S - the reason there is a reference to ‘physicalShip’ is because I’m calling it from another script and storing the gameObject to be animated at start. Also, when I tried it using POSITION with only one Vector3 it worked fine.

iTween.MoveTo( physicalShip , {"path" : [ posToTween, Vector3(0,0,0)] , "time" : 1, "easetype": "easeInOutSine", "oncomplete" : "ExitState_Dodging", "oncompletetarget" : gameObject});

If you are using C# you might need to declare the Vector3 array like:

new Vector3{posToTween, new Vector3(0,0,0)}