(please check attached screen shot)
We are trying to attach a weapon to a character. For the right arm it works well and the code used in BM attach the weapon correctly to the right arm.
Now what we want to do is attaching the second arm to a slot point defined on the weapon. To do this, IK is the typical solution. But unfortunally, we didn't manage to get it to work. The only function available in the API is skel.TransformInWorldSpace and it does not seems to perform IK at all.
We tried but desepseratly we did not manage to get it to work . We are now completely stuck and we apperciate ur help to fix the issue. please check the attached screen shots.
i'm not sure there's a ez solution for this one, even if something like a second point in the weapon to be linked with the arm, would def. be nice to see,
for now maybe, used sync anim to make it move with the weapon and use
item.matrix(Matrix().setPosDir(point.pos, point.cross(), point.dir)); to have it in the right direction and angle for your first anchor
but that may work for a single weapon. if we want to switch weapon or hold gun, ur solution will not scale!! . there should be a proper way to do this.. but cant figure it out..