- Home /
Change animation start position
Hi, i have run into a problem as i am new with managing animation in unity. I have two animations attached to a character.One is back flip jump when the character changes its position backward with keyframe.The other is the idle animation.Now after playing the back flip jump animation when its time to play the idle animation the character sweep forward to its initial position instead of playing the idle animation at the position where the backFlipJump animation ended.What is the solution?
Answer by masha · Nov 13, 2012 at 09:16 AM
I'm assuming that the backflip animation actually moves your character backwards. One solution would be to re-do that animation, with the character going through the movements of a backward flip but staying at the same position. Then programatically move your character backwards when doing a backflip.
Another, simpler but hackier way, would be to simply move your character backwards once the animation is done.
Thanks masha, do you know anyway how i can start an animation from position where another animation has stopped or reached in a time.I.e. start the idle animation at the position where the backFlip animation ended, though the backFlip position change was done with keyframe.
I would try checking the position of a bone (ideally the root bone), at the first and last frame, that will tell you the relative difference
So do you think changing the animation outside is final solution, no way to fix in unity or script?
Your answer
Follow this Question
Related Questions
Model change position to (0,0,0) when I Start the game. 1 Answer
Positioned Blender models with animation snap back to 0,0,0 1 Answer
In animations, is it possible to only add transform values instead of setting it? 2 Answers
Run Animation Rotation - Position 1 Answer
teleporter not working due to animator 0 Answers