johnatm / itween

Automatically exported from code.google.com/p/itween
1 stars 2 forks source link

OrientToPath #105

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an equilateral triangle object
2. Use the line 
iTween.MoveTo(gameObject,iTween.Hash("path",iTweenPath.GetPath("Path01"),"time",
7,"orienttopath",true,"looktime",.6,"easetype","easeInOutSine","oncomplete","com
plete")); on the triangle that has an iTween Path.
2a. Notice that triangle orients to the path when run
3. Rotate the Triangle 180 degrees
4. Press play again
5. Notice that the triangle orients the same way as when step 2 is used

What is the expected output? What do you see instead?

Orienting the triangle to the path makes the tip of triangle face away from the 
path. Rotating it 180 has the same orientation. My model (much more complex 
than a triangle) is constantly following the path "backwards" no matter what I 
do. I need a solution so that I can make its orientation start wherever I want 
it to and then when I tell it to orientToPath the object will orient along that 
axis. 

What version of the product are you using? On what operating system?
Version 2.0.45. Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by Kenneth....@gmail.com on 21 May 2012 at 5:40