- cpp 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");
ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(smgr->getRootSceneNode(),100.0,.025f,-1,keyMap, 5, false, 3.0);
I've tried this with a few different drivers and it doesn't help. I also have a wrapper class for scene nodes, if that is relevant. I had it to where it wouldn't lag for a while,
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.