Sorry, two problems when I use your code.
1. I guess shoulderBone comes from getbone('skel_ShoulderL'). Then where is elbowBone from? I don't see a elbow bone in the skeleton.
2. If shoulderBone and elbowBone are from getbone(), maybe because my Vizard is only 2.17a, it doesn't support <bone>.getPosition command. Is there any substitute?
More question about version 2.17a:
It seems <bone>.setEuler doesn't work in this version too. Any substitute for setting the rotation of the bone?
Thanks,
ruddle
|