- Home /
Mecanim Character Barrel Roll
Hey,
I am having some trouble to add a barrel roll animation to play.
Basically, I am using a 2D cartesian Blend Tree for xz motion based on the 2 variables "horizontal" for x and "vertical" for z movement. The character should make a left/right barrel roll, when the pressing "spacebar" and depending on what value "horizontal" is.
But I can not add the pressed button condition to the blendtree. Is it possible to add these to the 2D cartesian blend tree without having to do it the other way:
to make 2 animationclip references in the script, because I want to have only the original barrel roll animationClip in the project folder. That would be a waste if a duplication is there with mirror checked.
Will a switch to an 1D-Blendtree help, and if so how can I switch to this and back to the normal 2D cartesian?
Thanks