- Home /
Return animation to original position?
if (something happens){
animation.returntoOriginalState;
}
I want it to be like the animation never happened.
I have a guy that hits slowly with a club. If the player isn't in the area, I would like the club to return to it's original position so that it's as if the animation never happened and the animation can be called again.
Also, on a semi-related note, the club has a trigger collider around it, if it was at all possible to make it so that the collider still triggers on it's animation route, that would be awesome too!
Thanks!
Answer by komodor · Jan 24, 2014 at 12:27 AM
if you are using Animation then
http://docs.unity3d.com/Documentation/ScriptReference/Animation.Rewind.html
if you are using Animator (mecanim) then
http://answers.unity3d.com/questions/623878/how-to-restart-mecanim-state-animation-or-play-it.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613131248im_/https://answers.unity.com/themes/thub/images/avi.jpg)