Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Mecanim and Y-axis Translation

Discussion in 'Developer Preview Archive' started by dar, Oct 30, 2012.

  1. dar

    dar

    Joined:
    Oct 24, 2012
    Posts:
    1
    Hi,

    I was just wondering why the Animator Controller seems to not be able to apply root motion to the y-axis. In the Mecanim Beta Tutorial, for example, it was necessary to manually adjust the height of the collider during the jump animation through code and animation curves.

    Thanks
     
  2. pierrepaul

    pierrepaul

    Unity Technologies

    Joined:
    Jun 19, 2012
    Posts:
    162
    It can.

    If you have an animation that has Y motion in it, just set Bake to Pose to false in the Root Transform Position Y section of the animation importer.

    This allows for climbing up, jump up/down etc...

    Otherwise, if the setting is true, the trajectory of the root will be projected on the floor.

    Hope this helps !

    pp