How do I cancel the collision to choose?
I created a collision to select the code is written so:
scene :: ITriangleSelector * sel = smgr-> createTriangleSelector (sceneNode-> getMesh (), sceneNode);
sceneNode-> setTriangleSelector (sel);
sel-> drop ();
I ask me how to cancel the collision Select and delete the scene node and release the memory?
I tried to write this, but memory is not freed, seems collision choices did not cancel.
node-> getTriangleSelector () -> drop ();
smgr-> addToDeletionQueue (node);
the mesh-> drop ();
May I ask how should I do, thank you!