- Home /
With animator, ow to transit quickly from an animation, and transit back without replaying the complete animation
Hi Guys,
Here is my situation :
I have an animator for 2D character composed with skeletal sprite
I've got a state with an animation which allow my character to aim from up position and descend to the down position, and a copy of this state which play the same animation but with negative speed.
I also have a neutral state with no action on the relevant element (the arm and torso)
In term of animator, I make a transition from the neutral to the relevant slide of the orientation (aim upper or lower than the current position, boolean value based in code on the position on the redline), and a transition which come back to neutral state once no boolean require to look up or down.
My issue is that I want the animation to stop when the desired position is reached, and restart from the same position in the relevant direction when requested.
with no modification of the transition, the animation is played to longly to have an efficient exit form the state.
with transition set to almost zero, the exit from state seems to be ok, but when I move back to aim up or down state the animation is replayed from initial position.
It also seems that the neutral state, even with no curve for the concerned elements, store some position for these elements.
Maybe there is a simplier way to handle this, but I'm quite new with animator and transition.
Thanks in advance for your time.
Your answer
Follow this Question
Related Questions
Mecanim and Ragdoll Issues? 2 Answers
Problems with Animator(Mecanim) 1 Answer
Use Humanoid Animations with aditional bones 2 Answers
[Unity 4.3] Skinned legacy animations do not work 1 Answer
Getting with the times... learning Mechanim/Animator 1 Answer