- Home /
Animations not playing correctly
Gentlemen! I'm having an issue, as per usual.
I'm using Blender to create animations for my characters and, after having done most of them for one of said characters, imported the model as an FBX. For the most part the animations look fine, but there are some problems:
1) The most prevalent problem is that every looping animation is spazzing out near the end of the cycle. I'd assume that this problem is caused by the frames I listed in the Inspector being part of the next animation, but that's not the case. In Blender, I separated every animation by a copy of the final frame at the end and first frame at the beginning, so there should be a buffer.
2) In addition to spazzing out, the run animation has the character appear about 50 units to one side for a split second at the end of it's cycle. This seems to be interfering with the character's movement, as their speed slows a bit whenever it happens.
Any ideas as to where the problem is? could it be the way I'm doing the animations in Blender, the way I'm exporting the model, or the way I'm setting it up in Unity?
(For the most part, the only thing I'm doing in the code is 'animation.Play ("Animation");')
$$anonymous$$ake sure your pivot points are centered and reset (in blender). Also try to set an animation buffer of 2-3 frames at the end of every animation and exclude those from the animation editor. 1-10 (unused buffer 10-13) 15-25 (buffer) etc