Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    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. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Humanoid rig: red and blue spheres?

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

  1. m1m1n

    m1m1n

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

     
  2. SrNull

    SrNull

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

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,611
    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:
    154
    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,611
    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.