Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Animation orientation problem with humanoid rigging

Discussion in 'Animation' started by Kirinomizumi_Ouyang, Mar 15, 2023.

  1. Kirinomizumi_Ouyang

    Kirinomizumi_Ouyang

    Joined:
    Nov 19, 2020
    Posts:
    2
    I'm having a orientation problem while using Unity.
    Basically, I made a working Idle-walk blend tree using character from mixamo, the model was imported and rigged humanoid, with a avatar created. Then I imported that model into blender and made a simple animation. I imported it into Unity and used humanoid rigging, while using the same avatar created previously.
    When playing or previewing the animation, the character pointed 45 degrees away from forward. I'm not sure why it's happening, but It's not the first time it happened on this workflow. I checked and found that it's not bcause of applying root motion.
    So, can someone please tell me any probable reasons? or perhaps there is a problem with how I made the animation in Blender? (This problem occured when i was using blender, and happened when I used a animation with root transform on mixamo)

    using generic model preview.png
    This one is the animation preview window using the model that came together while importing from blender.
    -
    using player character preview.png
    This preview is with the actual player model with animator attached that I dragged from the hierachy.
     
  2. jckob3

    jckob3

    Joined:
    May 19, 2019
    Posts:
    2
    For me it looks like the root rotation is messing it up.
    You can take a look at it in "Animation" section in "Inspector" after clicking the prefab in "Project".

    upload_2023-3-16_1-39-19.png
     
    Kirinomizumi_Ouyang likes this.
  3. Kirinomizumi_Ouyang

    Kirinomizumi_Ouyang

    Joined:
    Nov 19, 2020
    Posts:
    2
    Thanks for your help! That's literally the cause of the problem.
    I didn't notice that there was a small snippet when I hover my mouse on the Root Transform Rotation --> Based Upon dropdown bar which says that " Body orientation would force the upper body pointing forward ". I made some testings with more animations that had the same problem and found that they are all animations with some orientation on the hip bone. Setting the Based Upon option to "Original" solves all the problem :D