Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Animation preview model global orientation

Discussion in 'Animation' started by Pirs01, Oct 24, 2013.

  1. Pirs01

    Pirs01

    Joined:
    Sep 30, 2012
    Posts:
    389
    Hello,

    I'm total noob when it comes to models, animations or Unity assets in general so don't assume that I know some obvious 101 stuff because I probably don't.

    I have created a human jogging animation in MotionBuilder based on some mocap data. It is natural that data is imperfect - not exactly running in straight line etc. I have however looped the animation so that all of the bones and joints transformation (except z axis) and rotation are identical. In short the model ends the animation exactly where it started (except z axis) and in same pose. I would expect model with that animation to run in straight line and so it does in MotionBuilder. It is no longer the case after importing to Unity.

    When I preview the animation in Unity there is this thing:

    $preview_model_orientation.JPG

    I assume it represents some kind of global model orientation. I looked through documentation but nowhere does it say about this gadget what it is, and where it comes from exactly.
    The red arrow is aligned correctly with the grid (character facing forward) in first and last frame. However it wobbles on frames in between. As a result my character does not jog in straight line.

    Can someone explain what does this gadget in picture correspond to exactly?
     
  2. Pirs01

    Pirs01

    Joined:
    Sep 30, 2012
    Posts:
    389