I have a model in x-file.when I load it to AnimatedMeshSceneNode it's fine.But if I load it into MeshSceneNode,the model is destroyed.Does anyone know why and have solution for that?
IAnimatedMesh* animMesh = pSceneManager->getMesh("model.X") ;
MeshSceneNode* mCstle_ForCollisionTest = pSceneManager->addMeshSceneNode(animMesh->getMesh(0),0,0);
=>the model destroyed.
IAnimatedMesh* animMesh = pSceneManager->getMesh("model.X") ;
IAnimtedMeshSceneNode* mCstle_ForCollisionTest = pSceneManager->addMeshSceneNode(animMesh->getMesh(0),0,0);
->the model is fine.
I need to load it to IMeshSceneNode,since triangleSelector for collision detect seems only compatible for IMesh not IAnimatedMesh.
Plz,help me.