Search Unity

  1. Full schedule for #UniteBerlin is now available! Featuring talks on our roadmap, hands-on labs and much more! Check it out!
    Dismiss Notice
  2. Unity 2018.1 has arrived! Read about it here
    Dismiss Notice
  3. Scriptable Render Pipeline improvements, Texture Mipmap Streaming, and more! Check out what we have in store for you in the 2018.2 Beta.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. 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,526
    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:
    115
    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,526
    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.