03-07-2016, 08:20 AM
You're talking about changing length/distance while animating? Hmm, never tried that, but I bet you'll need to stop, set and restart animation to make it smooth. But in that case I would recommend creating a custom controller for that purpose, it's more straightforward and easier to extend. The key is not to set the controller's position (i.e. transform.position), but controller's relative (TF) or absolute (Distance) position instead.
E.g. add a field for your target TF and override Refresh() to animate Speed based on a tweening, then let the controller do it's usual work.
E.g. add a field for your target TF and override Refresh() to animate Speed based on a tweening, then let the controller do it's usual work.