how to attach joint to node
Posted: Sat Nov 25, 2023 10:07 am
Hi,
I need a brief explanation about how to attach joints and nodes, like ad example a weapon to hand bone.
I used this code:
But, at runtime, the weapon node (previosly in the scene) seems neither to be attached to the hand bone nor to be rendered.
Which is the right way to perform this task?
Thanks.
I need a brief explanation about how to attach joints and nodes, like ad example a weapon to hand bone.
I used this code:
Code: Select all
myChar->setJointMode(EJUOR_READ);
[...]
ISceneNode* hand = myChar->getJointNode("mixamorig:LeftHand");
if (hand)
{
hand->addChild(weapon);
hand->updateAbsolutePosition();
}
Which is the right way to perform this task?
Thanks.