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

Animation clip starts in different position

Discussion in 'Timeline' started by connectorone, Jun 9, 2021.

  1. connectorone

    connectorone

    Joined:
    Apr 11, 2017
    Posts:
    14
  2. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    There's no single answer to these issues.
    Please export your Timeline as a UnityPackage, and PM it to me. I'll take a look.
     
  3. connectorone

    connectorone

    Joined:
    Apr 11, 2017
    Posts:
    14
    Thanks DavidGeoffroy. I've sent you the message.
     
  4. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    Ok, I got it working.

    Here is what you need to do:

    First:
    The mixamo animations don't really have a root joint, so what you want is to treat the hips as your root joint.
    To do that, you need to go on Louis1, and generate an avatar for your character:
    upload_2021-6-10_8-53-43.png `

    Then you want to select the hips joint as your root joint:
    upload_2021-6-10_8-55-6.png

    This will create you an avatar that specifies that the joint to be used as the source of Root motion is the hips. It will let you import your animations to be used with Root motion.

    Normally, you would use the rig that was used to generate the animations as the source of your avatar, but since Louis1 is compatible with mixamo animations, it should do.

    Then you need to go in your animations and provide the newly created avatar as the avatar to use to import clips.



    Select a FBX , then, select Copy From Other Avatar for the Avatar Definition
    upload_2021-6-10_8-59-11.png

    Select Louis Avatar as the avatar to use
    upload_2021-6-10_9-1-26.png


    Select the Louis GameObject or Prefab in the scene and make sure that the Avatar is set to Louis Avatar (otherwise the root motion will be wonky).

    And also select Apply Root Motion

    upload_2021-6-10_9-3-19.png

    And now you can use match offsets on your clips in Timeline.


    Since match offsets only works on the root joint, and your animation solely animates the hip joints, this will only work with Apply Root Motion ON.
     
    IslandLabsKReguieg likes this.
  5. connectorone

    connectorone

    Joined:
    Apr 11, 2017
    Posts:
    14
    Your amazing Man! Works perfectly. I can do the proper job now:)

    Thank you so much!!!

    Have a nice day