this is my code:
iTween.MoveTo(this.gameObject,target.position,5f));
my object moves only the target stoped.
how could i let the object moving when the target is moving? thx!
this is my code:
iTween.MoveTo(this.gameObject,target.position,5f));
my object moves only the target stoped.
how could i let the object moving when the target is moving? thx!
public var target : Transform;
function FixedUpdate ()
{
var pos : Vector3 = target.position;
pos.z=target.position.z-19;
pos.y=target.position.y+7;
iTween.MoveUpdate(gameObject,pos,1.2);
}
That is using iTween.MoveUpdate, which keeps checking the position of the target.
The pos.z and pos.y are just offsets.
Your question was a bit vague. But thought I’de try to help!
P.S. I highly suggest the iTween visualeditor :
http://dkoontz.wordpress.com/itween-visual-editor/
Makes iTween even better (if thats possible!)