Animation loop twitches on each loop

Hi,

I made a series of animations for my characters movements in Maya and they loop seamlesly there, but once imported into Unity the animation loops arent seamlessly looping. There’s a small twitch at the start of every loop on all my animation loops.

Does anybody know why this is happening?

The animations are bools activated through scripting.

I import the animations as .fbx files btw.

This is commonly due to the curves going into and out of the first/last animation frames.
To solve edit the in/out curves of the first and last frames so they flow properly and then - duplicate all the first key frames on frame one, and put them one frame before the animation cycle, and then duplicate the last animation frames and place them one frame after the animation cycle. Then export and on import make sure the key range is the same length as the original animation cycle, excluding the duplicated keys before and after the cycle.

1 Like

That’s what I do and it seems to work fine, sorta blocks those keys in. But really it should be the same as your animation software. I wonder if it’s maybe a frame rate difference? Or keys getting mushed up through optimisation?
Anyway, this worked for me so I left it at that :slight_smile: