Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Humanoid rig: red and blue spheres?

Discussion in 'Animation' started by emin_chernov, Nov 5, 2017.

  1. emin_chernov

    emin_chernov

    Joined:
    Jul 10, 2017
    Posts:
    9
    What are this spheres? What are they standing for?

     
  2. SrNull

    SrNull

    Joined:
    Jun 9, 2011
    Posts:
    18
    I have the same question , :/
     
  3. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,624
    the blue one are the humanoid mass center(BodyPosition) and the feet pivot
    the red one are the IK goal
    the green one is the match target goal
     
  4. eobet

    eobet

    Joined:
    May 2, 2014
    Posts:
    172
    How can there be a mass center without a ragdoll with rigid bodies?

    Also, I have a really simple idle animation, why does my mass center jitter like crazy?

    blue.gif

    Can this blue ball be accessed in any way through script for anything useful?

    The red IK goals, where do they come from? My animation originates from Blender where I have IK targets for knee bending set up, which do get imported into Unity (whereas the hip and foot targets do not), but those red balls are certainly not it, and if you look at the left leg, I'm not even sure if they're even active.

    Where can I find documentation about a possible green one? I can't see one in my character.
     
  5. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,624
    Mecanim Humanoid does compute his own mass center, the blue sphere that jitter in this case is the feet pivot, which jitter between the right and left foot since both have no velocity in an idle clip, don't worry this is expected.
    the mass center can be found on
    https://docs.unity3d.com/ScriptReference/Animator-bodyPosition.html
    https://docs.unity3d.com/ScriptReference/Animator-bodyRotation.html
    the feet pivot
    https://docs.unity3d.com/ScriptReference/Animator-pivotPosition.html

    The IK goal that you see in Unity are not the one that you did keyframe in blender, thoses IK goal are computed by Mecanim when you import a clip. They are mainly used to fix foot sliding issue when you retarget a motion with different proportions, they are basically the original position/rotation of the feet and hand from the imported clip.

    The green dot is only visible when you start a Match target
    https://docs.unity3d.com/ScriptReference/Animator.MatchTarget.html
     
    eobet likes this.