I’m kind of new with blender… and I really need help because this issue is really giving me very hard time …
I want to get the upper limb joint angles (elbow, shoulder) continuously during the game … but I cant even get the location of the bones … I use this code but it always return me zero vector no matter what :
Individual bones are not seperate objects so dont have positions.
You should use ;
bone[‘mybone’].head - the position of the base of the bone, relative to parent.
bone[‘mybone’].head_local - the position of the base of the bone, relative to armature (local space)
You probably want the second one. Multiply with the armature’s world matrix to get world space pos.
See also;
.tail - the position of the end of the bone relative to parent
.tail_local - the position of the end of the bone relative to armature
.center - the postion between the two above
.vector - the direction of the bone