Hello Guys,
I’m have this code for getting a given joint:
SkinningControl skinningControl = this.skinningControlNode.getControl(SkinningControl.class);
if (skinningControl != null) {
myJointNode= skinningControl.getAttachmentsNode(jointName);
}
Then I want to place another node in the position (world position) of that joint:
Vector3f pos = rootNode.worldToLocal(myJointNode.getWorldTranslation(),null);
myOtherNode.setLocalTranslation(pos);
But I’m not getting the joint’s world position but rather it’s parent’s position…
I found a workaround to place my other node in the joint’s position - I attach it to the joint’s node then detach it (attach it to the root node) but I don’t like this approach.
So, how can I position my other node in the world position of the joint?