Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
line 270:

Transform.position = Vector3.Lerp(Transform.localPosition, targetPos, (float)mSwitchEventArgs.Data);

Is it not logical to use start position as first parameter? At this moment SwitchTo function completely ignore duration parameter.
No, it's not. Base.Refresh() advances localPosition and the SplineController then lerps it between the current and the target spline. It moves onto the source spline until the transition is complete. And yes, SwitchTo() doesn't support any animation features yet, just the regular movement.

Forum Jump: