Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: indeed on February 26, 2015, 11:10:34 AM

Title: Difference between "Vector Position" and "Transform Position" in iTween?
Post by: indeed on February 26, 2015, 11:10:34 AM
Hi, sorry if this is really basic, but I just don't get it. What is the difference, for example in the iTween Move To action, between Vector Position and Transform Position? When would you use one and not the other?
Title: Re: Difference between "Vector Position" and "Transform Position" in iTween?
Post by: Lane on February 26, 2015, 11:28:31 AM
Vector Position needs a Vector3 variable.
Transform Position needs a GameObject/Transform variable.

They're different Object Types. If you can supply a numerical Vector3, then use the Vector Position field. If you can supply a GameObject to target, then use the Transform Position field.
Title: Re: Difference between "Vector Position" and "Transform Position" in iTween?
Post by: indeed on February 26, 2015, 11:42:05 AM
Ah ok, that makes sense. I was just confused about best practices. Like, if I just want a cube to raise upwards, does it makes more sense to use one or the other? Both seem to work, just want to avoid any trouble as I build things. 
Title: Re: Difference between "Vector Position" and "Transform Position" in iTween?
Post by: Lane on February 26, 2015, 11:43:22 AM
Whichever one serves your purposes better is fine.