What are this spheres? What are they standing for?
What are this spheres? What are they standing for?
I have the same question ,
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
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?
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.
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
Recently I’ve implemented my foot IK script it works fine on other models but when I try to attach the script onto my own character model the feet rotation are incorrect I know the issue is due to this raycast near the blue sphere which is facing the opposite direction based on my character movement any Idea How I can fix this please.