Search Unity

Transform scaling a character in mecanim problems

Discussion in 'Animation' started by Velo222, Dec 31, 2013.

  1. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,437
    Hello,

    I've noticed that when I use the mecanim animation system on a character, and then try to set the scale of the character (via it's transform component) to something other than them all being the same (i.e. Vector3(1,1,1) or Vector3(5,5,5) or Vector3(2,2,2), etc......), the location of objects relative to the animation seems to be off.

    For instance, if I have a swordsman, and I set his scale to be x: 3, y: 1, z: 3 (that is Vector3(3, 1, 3), then in the game at runtime, the sword and shield he is holding are at his elbows instead of his hands.

    In the legacy system I did not have this problem. Is there a way to fix this, so that I can set a scale of 3, 1, 3 on my character and have everything work correctly. Or am I confined to using all the same values for scale when I use mecanim??

    Thanks for any help.