# using itween to move objects in the 6 degrees of freedom

I am working on a school project where I have to give movement to an object. A friend of mine recommended that I use iTween. I started using it to move the object to the right but I want it to move the object right to left.

This is what I have so far:

``````public void MoveAcrossXPlane()
{
iTween.MoveTo(_cubeObject, Vector3.right, 0.5f);
}
``````

Can anyone help me understand what I need to do? Thank you in advance!

Vector3.right is just a shorthand for new Vector3(1, 0, 0). So you can supply your own vector for the left direction instead which is the negative direction of right: new Vector3(-1, 0, 0) or you can reverse the direction of the right Vector: -Vector3.right

A note on iTween: All the move functions uses a point in space to move towards and not a direction. The Vector3.right will move the object to that point (1, 0, 0), you can make it move further by multiplying the Vector with the distance you want it to go (-Vector3.right * distance). It will eventually stop though.