playMaker

Author Topic: iTween move to. Not orienting to path. [SOLVED]  (Read 7507 times)

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
iTween move to. Not orienting to path. [SOLVED]
« on: August 08, 2013, 10:45:58 AM »
Is this iTween set up correctly to orient to a path? If it is. Why wont it rotate along with the path?
« Last Edit: October 24, 2013, 10:43:51 AM by TIGGYsmalls »

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: iTween move to. Not orienting to path.
« Reply #1 on: August 08, 2013, 02:18:29 PM »
I don't know if it's just me but all the the iTween actions I've checked, the Look At functions just don't seem to be working properly?

Apart from iTween Look Update.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: iTween move to. Not orienting to path.
« Reply #2 on: August 14, 2013, 05:12:14 AM »
Hi,

 it may be because you expect a certain type of behavior that tween engine can't really provide.

look at will not follow a moving target for example. Is it your probem here?

 as for orientation, do you mean "banking" or actually pointing the object to it's trajectory?

bye,

Jean

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: iTween move to. Not orienting to path.
« Reply #3 on: October 21, 2013, 04:28:36 PM »
Wow, forgotten I had asked this but I have the same problem again.

I have a spaceship moving through 8 vectors. The craft will orient itself to the first 2 points, but when it gets to vector 4 the craft just looks at the last vector.

I want it to seem as if its looking at the camera at a world position of 0,0,0. But its end up looking at the point were its supposed to stop.

If I set the last Vector to 0,0,0 then it looks like its facing the camera but its not got the nice flow it starts out with.
« Last Edit: October 21, 2013, 04:38:09 PM by TIGGYsmalls »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: iTween move to. Not orienting to path.
« Reply #4 on: October 22, 2013, 02:28:22 AM »
Hi,

 Can you make a package for this? asset files will not work ( and I wonder how you got that file anyway).

bye,

 Jean

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: iTween move to. Not orienting to path.
« Reply #5 on: October 22, 2013, 06:15:02 AM »
VectorPath.asset is a template from Assets>Playmaker>Templates

For a package do I need to have Include Dependencies toggled on? The one attached doesn't because it would be over 800kb.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: iTween move to. Not orienting to path.
« Reply #6 on: October 22, 2013, 07:23:06 AM »
Hi,

 yes, include dependencies and then uncheck the PlayMaker.dll (the only file you are not authorize to redistribute), then I'll be able to have a proper look.

bye,

 Jean

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: iTween move to. Not orienting to path.
« Reply #7 on: October 22, 2013, 12:26:00 PM »
I think this is correct. Had to zip it as it was 3kb too big.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: iTween move to. Not orienting to path.
« Reply #8 on: October 23, 2013, 04:34:26 AM »
Hi,

 Typically, you need to set your look Ahead value correctly, for example 0.01 which means it's looking very close to itself on the curve which guarantees its looking int he direction it goes, setting hight value is possible ONLY if your path definition is appropriate.

 if the distance between two path points is less then 1, and your look ahead is 1, then you have a problem as it looks way to far on the curve.

bye,

 Jean

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: iTween move to. Not orienting to path.
« Reply #9 on: October 24, 2013, 10:43:28 AM »
Thank you.

I did adjust that number but obviously I didn't choose the right values.