// loop over all of the nodes
// then in a switch
case ESNT_ANIMATED_MESH:
selector = smgr->createTriangleSelector(((IAnimatedMeshSceneNode*)node)->getMesh(), node);
break;
// after that
if(selector)
{
// Add it to the meta selector, which will take a reference to it
meta->addTriangleSelector(selector);
// And drop my reference to it, so that the meta selector owns it.
selector->drop();
}
// after adding the selector to the meta
anim = smgr->createCollisionResponseAnimator(meta, player_node, vector3df(10,10,10), vector3df(vx,vy,vz));
player_node->addAnimator(anim);