I have a IAnimatedMeshSceneNode that I have to drop, this is the node:
Code: Select all
enemy[i].mesh = smgr->getMesh("./data/enemy/zombie.b3d");
enemy[i].node = smgr->addAnimatedMeshSceneNode(enemy[i].mesh);
f(enemy[i].node)
{
enemy[i].node->setPosition(core::vector3df(enemy[i].pos));
enemy[i].node->setScale(core::vector3df(13, 13, 13));
enemy[i].node->setMaterialFlag(EMF_LIGHTING, false);
enemy[i].selector = smgr->createTriangleSelector(enemy[i].mesh->getMesh(0), enemy[i].node);
enemy[i].node->setTriangleSelector(enemy[i].selector);
enemy[i].selector->drop();
}
I have tryed also with smgr->addToDeletionQueue(node) and node->remove() but i get always the same windows error, what i have to do for dropping it?
P.S: The animation has collisions, texture and animations.