- Home /
Mecanim issue: Twitching when blending into blendtrees
Hi,
So I have an animator controller which consists of a base layer, a layer that is synchronized with the base layer, and a layer that controls the arms. In all the layers I have several blendtress and when I blend into one of these, in the synchronized or arms layer, the character twitches at the beginning and end of the animation.
I'm not sure if the a unity bug or if it's something specific to my configuration.
It seems that the bug comes and goes, but I'm sure what triggers it.
Has anyone else had similar issues and do you know of any solutions? Any information is helpful.
Answer by infinitypbr · Nov 29, 2013 at 04:14 PM
Are you using the new "Trigger" feature or the older "Boolean" to make your animations change? If you're using the boolean -- or even the trigger -- you may be starting the animation on each frame for a while. Have you watched your Animator window for your character to see what animation is running when the twitching happens?
I'm using booleans. I'm not samiliar with triggers, are they better? Do you have a link to some documentation about it?
I have been watching the animator window and everything looks in order there.
Set the variable up as "trigger" in mecanim and ins$$anonymous$$d of SetBool("variable", true), you'd use SetTrigger("variable")
It will trigger the variable just once, no need to check to see the status of it to turn it off, and no risk of triggering it multiple times (unless your code does it).
Google around. It's new in 4.3. If you haven't looked @ the 2D Demo project, do so, it has a lot of the new features, including Triggers.
Your answer
Follow this Question
Related Questions
Animator System doesnt work! 1 Answer
Mecanim CrossFade transition interruption issue 3 Answers
Cannot restart animation in Mecanim 3 Answers
Dynamic Mecanim animation speed/time 1 Answer
Problems with Animator(Mecanim) 1 Answer