playMaker

Author Topic: Best way to get and set a position of an object while moving?  (Read 1161 times)

Adam Z

  • Full Member
  • ***
  • Posts: 207
Best way to get and set a position of an object while moving?
« on: October 29, 2015, 12:13:59 PM »
I'm trying to move a camera from one position to another with 'I Tween Move To.'  I have a 'Get Position' action on my state, to find the location of my characters head bone in World space. If my character isn't moving, that works fine with 'I Tween Move To' which is set to World space also. Once my character moves however, the position of my head bone changes, thus the end location of my itween is off.

I would have used local space on my get position, but that location isn't correct.  If I hard code the local space position, that works fine. But the problem with that is if I change my characters size, that position would be off.

Does anyone have any suggestions?  Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Best way to get and set a position of an object while moving?
« Reply #1 on: October 29, 2015, 06:42:40 PM »
Hi,
maybe you can use "move towards" action and "look at" action?