Code: Select all
scene::IAnimatedMesh* model;
smgr->getParameters()->setAttribute(irr::scene::COLLADA_CREATE_SCENE_INSTANCES, true);
model = smgr->getMesh("mesh.dae");
but I want to replace this model with another, i have to delete old model, then load a new model
I use this code
Code: Select all
smgr->getMeshCache()->removeMesh(model)help me