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.

Can you please supply some sample code as this should not be happening. Thanks!

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)

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.