khangnhfuky / hotween

Automatically exported from code.google.com/p/hotween
0 stars 0 forks source link

Issue : Incorrect transform behavior on CurvedPath #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a path with 4 points, all aligned on X and Y, just Z is different 
(let's say 0, 10, 40 and 50)
2. Use a transform to follow the spline, step by step on Unity
3. See the path followed near the start, and near the end (the transform goes 
to x% then go back forward 0% then go again to x% etc...

What is the expected output? What do you see instead?
I would expect the transform to never get back

What version of the product are you using? On what operating system?
1.1.780 on Unity, Windows 8 x64

Please provide any additional information below.
Here is the code with parameters :

PlugVector3Path vector3Path = new PlugVector3Path( 
_allPaths[whichLane].pathPoints, EaseType.Linear, false, 
PathType.Curved).OrientToPath();
TweenParms tweenParam = new TweenParms().Prop("position", vector3Path)
                    .Loops( 1 ) 
                    .Ease( EaseType.Linear )
                    .Delay(0)
                    .OnStepComplete( CurrentPathCycleComplete );
tweeners[whichLane] = HOTween.To( ozoController, timeToCompletePath, 
tweenParam);

Please note that the behavior is correct with PathType.Linear

Thank you for your product and for your time !
Sorry if my english may be inacurate, i am french.

Jordy Rodriguez

Original issue reported on code.google.com by jordy.gu...@gmail.com on 24 Aug 2013 at 9:29

GoogleCodeExporter commented 9 years ago
Hi Jordy,

mhmm very weird, I used curved paths a lot (more for testing purposes than 
else), and never had a similar issue. I must've broken something recently, 
sorry for that. Gonna check it out ASAP.

Original comment by daniele....@gmail.com on 24 Aug 2013 at 9:38

GoogleCodeExporter commented 9 years ago

Original comment by daniele....@gmail.com on 24 Aug 2013 at 9:39

GoogleCodeExporter commented 9 years ago
Sorry, but I can't replicate this issue. Could you create a sample project 
(possibly with Unity 4, but even Unity 3 is ok) that replicates this bug and 
attach it here, so I can check it out? Thanks

Original comment by daniele....@gmail.com on 26 Aug 2013 at 1:32

GoogleCodeExporter commented 9 years ago

Original comment by daniele....@gmail.com on 11 Dec 2013 at 12:17