I use the following code to load a the mesh and create a scene node and collision queries.
mesh = smgr-> getMesh (meshFile);
node = smgr-> addMeshSceneNode (mesh);
ITriangleSelector * sel = smgr-> createTriangleSelector (node-> getMesh (), node);
node-> setTriangleSelector (sel);
sel-> drop ();
I want to delete the program runs in the scene node and mesh, and fully release the mesh and the memory occupied by the node (need to release the Cache mesh),
May I ask how should I do, thank you.
/ / Remove node
node-> remove ();
/ / How to remove the mesh?