HI guys,
I have a falling object, pulled by gravity. Object falling along its Y axis.
I want to move that object along it's X and Z axis when it hits a certain Y value.
Here's what I am using.
iTween.MoveBy(mainObject, new Vector3(1,0,1) ,1);
Now since I am setting Y to 0 in the new Vector3 position, I was expecting mainObject's Y axis to stay intact.
The problem is this is interrupting the fall, and the object appears to be stop from falling, sliding to its new position, then starts falling again when the animation is complete.
Is there a way to animate that object in X and Z only without affecting the Y axis?
Kinda per axis animation?
I tried using a hashtable:
Hashtable ht = new Hashtable();
ht.Add("x", 1 );
ht.Add("z", 1 );
ht.Add("time", 0.5);
iTween.MoveBy(mainObject, ht);
but this has the same effect, it also stops the object at the y value it initially had when the MoveBy was called.
thanks