Search Unity

Question Character is floating in the air when attaching to the character the Rig Builder component.

Discussion in 'Animation' started by JhonRA77, Nov 16, 2021.

  1. JhonRA77

    JhonRA77

    Joined:
    Sep 9, 2021
    Posts:
    51
    Any solution/s yet ?

    I'm using unity3d version 2020.3.22f personal
    Downloaded and imported the Animating Rigging package.

    And trying to work with it on my character.

    Screenshot of my character inspector settings :

    I have Animator with idle animation a Rigidbody a collider and Third Person User Control and Third Person Character.

    At the bottom the Rig Builder.



    Then when running the game the character is like fire up and stay up hanging in the air. The player is floating in the air :



    If I uncheck the Rig Builder and not using this component then the player the character stay on ground regular fine. but I want to use the Rig Builder component.
     
  2. KalOBrien

    KalOBrien

    Administrator

    Joined:
    Apr 20, 2021
    Posts:
    89
    Do you have the animator control enabled "Apply root motion"?
     
    JhonRA77 likes this.
  3. JhonRA77

    JhonRA77

    Joined:
    Sep 9, 2021
    Posts:
    51
    I tried this for testing the apply root motion but it didn't fix the problem.

    Code (csharp):
    1.  
    2. using System.Collections;
    3. using System.Collections.Generic;
    4. using UnityEngine;
    5.  
    6. public class ApplyRootTester : MonoBehaviour
    7. {
    8.     private Animator anim;
    9.  
    10.     // Start is called before the first frame update
    11.     void Awake()
    12.  
    13.     {
    14.         anim = GetComponent<Animator>();
    15.         anim.applyRootMotion = true;
    16.     }
    17.  
    18.     // Update is called once per frame
    19.     private void Update()
    20.     {
    21.         if (anim != null)
    22.         {
    23.             anim.applyRootMotion = true;
    24.         }
    25.     }
    26. }
    27.  
    I saw in google more few ppl with the same problem without a solution yet.
     
  4. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    295
    JhonRA77 likes this.
  5. JhonRA77

    JhonRA77

    Joined:
    Sep 9, 2021
    Posts:
    51
  6. DannisMa

    DannisMa

    Joined:
    Jul 1, 2019
    Posts:
    1
    I have a same problem but I fixed it. Because there are something wrong in the animation , we need to enable "bake into pose" then we can fixed this problem.
     

    Attached Files: