- Home /
Mecanim with generic animation, deltaRotation always identity
I am trying to use Mecanim for animation of an object (only translation and rotation in 3D space of main object, no skin deformation or child animated objects). As it needs a root node when importing animation (in Rig section of importing settings), I have added a bone (Ref_Joint) to the object in Maya. The object is linked to that bone. The animation looks good in preview animation window, but when I use it in Mecanim system (Animator, AnimationController...), animator.deltaRotation is always identity and animator.deltaPosition is inverted, like Ref_Joint was the origin and deltaPosition is following the (0,0,0) instead the other way.
I've tried all settings but it seems that it is impossible to get any value in animator.deltaRotation (I think the animation is only rotating in X and Z axis, not in Y).
Basically what I want to do is to control a spaceship with the animations provided by an animator in Maya: when you turn right or left, the spaceship will make a roll rotation... This kind of things.
Thanks in advance, Nacho.