- Home /
can someone help me fix my animation looping incorrectly?
I imported an fbx model for my temple run style game. I also imported its 2 fbx animation. the animatin keeps snapping back to its previous position rather than infinite running in place. Here is a video of my issue: https://drive.google.com/file/d/0B2oDmk0ZuOADNi0ydWVJWHk0cHM/view?usp=sharing
Answer by OllyNicholson · Jul 03, 2015 at 10:59 AM
Thanks for the video, that helps show the issue really well! so you need to look into 'Root Motion' which is the system to control where the root of your character is deriving it's motion from. For example if your character has motion capture animation of somebody walking then there is character locomotion that needs to be compensated for or overridden when using a character controller. Typically animations come in two forms 'on the spot' or with motion. Here are some docs to help get your head around it and apply the right settings for your animation:
http://docs.unity3d.com/Manual/RootMotion.html
http://docs.unity3d.com/Manual/LoopingAnimationClips.html
http://unity3d.com/learn/tutorials/modules/beginner/animation
Good luck and have fun!