- Home /
How to stop a MoveTo animation (Catmull-Rom) from animating back to the beginning?
I've created a flythrough animation using MoveTo and the path attribute. Everything works fine except that after completion, it insists on animating back to the start of the path before stopping. How do I make it stop on the last point in the path without returning to the start? I am using iTween 2.0.27.
Answer by pixelplacement · Sep 25, 2010 at 02:48 AM
Can you please supply some sample code as this should not be happening. Thanks!
Answer by kapitan · Oct 03, 2011 at 01:42 PM
I have the exact same problem... I tried to print all input point on the Path but they are all not zero.
I think it's something in the Spline algorithm...for example sometimes my path just finish like this: - (-6.5, -1.7, 4.1) - (-2.9, -4.6, 4.6) - ( 0.0, 0.0, 0.0) - ( 4.7, -4.3, 4.7) - ( 0.0, 0.0, 0.0) - ( 0.0, 0.0, 0.0) - ( 0.0, 0.0, 0.0) - ( 0.0, 0.0, 0.0)
Answer by kapitan · Oct 03, 2011 at 01:42 PM
I have the same problem, sometimes the path just goes to zero and my input points are not at all zero.
Maybe it's something in the spline algorithm, because i printed vector3s and path in the iTween.GenerateMoveToPathTargets() function and at a certain point they go to zero.
Your answer
Follow this Question
Related Questions
Force iTween to complete 1 Answer
iTween - queued sequential series of FadeTo's 0 Answers
Using iTween.PutOnPath 1 Answer
Unity high speed collision detect 3 Answers
Applying physics on an object 0 Answers