playMaker

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

ckarmy

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Problem with iTween Move To
« on: June 25, 2013, 09:49:33 PM »
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: 14500
  • Official Playmaker Support
    • View Profile
Re: Problem with iTween Move To
« Reply #1 on: June 26, 2013, 02: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