I am trying to attach weapon to a characters hand.
So I have this ISceneNode sword and IAnimatedMeshSceneNode node (character)
Both are x format
Obviously I need to make node hold the sword
As far as I figured out I did this in my init fuction, after loading meshes
Try sword->setPosition(vector3df(0,0,0); and see if that helps. Also, can you see the sword if you don't parent it to the hand? Maybe it's scaled really small or really big.
was missing
now I can see it. it follows the hand but its in wrong angle and position. Do you think I should just rotate/reposition it manually until I get it right?
you have to rotate this in the model.
in the player model, the line from "bone10" and the "bone 11" will be the angle of the sword.
and then, in the sword's model, you have to put it into 0,0,0, and rotate to 0,0,0