- Home /
No tranform animation on root bone from maya.mb
Hello everyone, this is probably a simple question to answer (hopefully) and i'm just being thick but here it is.
I have a rigged and weighted character imported into unity from maya 2010 in the .mb file format. I have baked the animation in the import settings and the character animates fine on first glance when I preview the animation, however on further inspection I have noticed that the character animates on the spot as if on a treadmill and is missing some of the animation that really gives the character a feeling of weight shifting. For example for a walk cycle the character has no lunge - forward motion - to it, the animation of which was a transform set to the root bone at the characters center of gravity - the hips/spine base or root bone, whatever you want to call it. Having done a bit of research before posting I have found that unity appears to cancel out these translations due to character movement generally being controlled by player input through scripting, which is fine, but the character in question would be a npc or cut scene character and NOT player controlled
So far I have tried adding another bone to the hierarchy set to the 0,0,0 in maya world coordinates and parenting the original root bone, and thus the entire rig, to that new bone hoping this would give the original root a point of reference and solve the problem. This was not the case.
So my question is how do I enable transform animation on the root bone of a character? I assume there's an option box to check somewhere that I can't find or something as simple as this because otherwise it seems like too big an oversight by Unity to just be left out. If someone could help out or at least point me in the right direction it would be much appreciated :)
Thanx
Answer by Paulius-Liekis · Apr 13, 2011 at 09:23 AM
Unity doesn't cancel out any tracks. At least nothing comes to mind. Maybe you need to bake your animation or something like that. Do you use some special controller to play your animation which overrides aniamtions?
I don't use any special controllers, no. All the animation is present as far as joint rotations go; there's just no transform present in any axis (x,y,z) on the root bone which would allow my character to animate off the spot, so to speak, and not as if on a treadmill.
Answer by DanteZ · Jan 22, 2012 at 02:50 PM
Same stuff here. Animations imported from blender - everything is fine, however root bone is still, that's why character is stuck in space, no weight animations applied. :(
Answer by Saurin · Apr 30, 2012 at 03:34 PM
Same peoblem, has any one got ways of importing animations that work well for npc.
Your answer
Follow this Question
Related Questions
Cant attach an object to the bone with a certain avatar 0 Answers
Manually set transform on certain bones in skinnedmeshrenderer 1 Answer
animation Root transform not showing 0 Answers
Added rotation AFTER the rotation from animation clip ( rewarding 400 points to whoever solves this) 1 Answer
Root Bone? Where? 1 Answer