playMaker

Author Topic: Difference between "Vector Position" and "Transform Position" in iTween?  (Read 2104 times)

indeed

  • Junior Playmaker
  • **
  • Posts: 85
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?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Difference between "Vector Position" and "Transform Position" in iTween?
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

indeed

  • Junior Playmaker
  • **
  • Posts: 85
Re: Difference between "Vector Position" and "Transform Position" in iTween?
« Reply #2 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. 

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Difference between "Vector Position" and "Transform Position" in iTween?
« Reply #3 on: February 26, 2015, 11:43:22 AM »
Whichever one serves your purposes better is fine.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D