playMaker

Author Topic: Problem with iTween Move To  (Read 2658 times)

ckarmy

  • Playmaker Newbie
  • *
  • Posts: 2
Problem with iTween Move To
« on: June 26, 2013, 12:49:33 AM »
Hi I'm new in playmaker and am making that an object follow another with the action "ITween move to". It works but the problem is that the target is moving and the action of ITween follows the initial position of the target and does not update while is moving.

How do I get that my object follow the target as it moves?

Thank you very much!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Problem with iTween Move To
« Reply #1 on: June 26, 2013, 05:40:24 AM »
Hi,

 Tween engines are not meant to following moving target as a rule of thumb.

Instead prefer the action "move towards" or simply lerp the position using "vector3 lerp".

bye,

 Jean