- Home /
How can i start an animation from the position a previous animation was interrupted?
I have an animation that moves from point A to point B and back. When the Animation gets interrupted i want to call another animation that starts at the exact point where the first animation stopped and end at a predefined position. Any idea how can i do that?
Answer by RufusHolton · Aug 26, 2020 at 01:03 PM
use Void OnCollisionEnter()
to detect when the animation is supposedly interrupted and then just get the object that is being animated position
if i understand correctly your solution only solves the first part of my problem. The thing that i am scratching my head with the most is the second one. After i have the object position how can i set an animation's starting point from that object's position? Because the other animations i have all start from the same point. What i want is to make a quick transition from the point of interruption back to the starting point and i am guessing that you need another animation for that.
Your answer
Follow this Question
Related Questions
Mecanim, Interrupting Transitions 1 Answer
Can the animation editor create local rotational data? 3 Answers
Adding animation clips via script 2 Answers