Goal
One might use a coroutine to interpolate an object's position from point A to point B.
What I'm trying to do is store that interpolation as a Unity Animation file, but have the ability to manually enter points A and B each time it plays.
Description
I have a simple Animation — a "jump", if you will — which I want to chain with the aforementioned interpolation:
- the object does a little jump;
- mid-air, the object moves/interpolates to another position.
Of course, I could do this by playing the coroutine after the first animation is done, but it'd be cleaner to store both as Animation files and use an Animator Controller to manage them, especially since the 2 animations are technically parts of one whole.
Is that possible?
If so, how could I record/create it? If not, what's a clean alternative?