Code: Select all
//parameters are not exact
IAnimatedMeshSceneNode* hands = smgr->addaddAnimatedMeshSceneNode(mesh, parent, id, position, rotation, scale);
IAnimatedMeshSceneNode* revolver = smgr->addaddAnimatedMeshSceneNode(mesh, parent, id, position, rotation, scale);
IAnimatedMeshSceneNode* wrist = hands->getJointNode("lWrist");
revolver->setParent(wrist);
ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(smgr->getRootSceneNode(),100.0,.025f,-1,keyMap, 5, false, 3.0);
hands->setParent(camera);
but now it started up again, and I don't know why.
Edit: I've tested some other models and it seems to be an issue with that specific model. Has anybody had any similar issues with their models not allowing good attachments?
Edit 2: I know why this is happening. In my irrlicht code, there is a line missing in the b3d loader. The weight doesn't get initialized, and it gets an undefined symbol.